A driver's platform_device_id and device data should and can be const.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
}
}
-static struct fsi_core fsi1_core = {
+static const struct fsi_core fsi1_core = {
.ver = 1,
/* Interrupt */
.imsk = IMSK,
};
-static struct fsi_core fsi2_core = {
+static const struct fsi_core fsi2_core = {
.ver = 2,
/* Interrupt */
};
MODULE_DEVICE_TABLE(of, fsi_of_match);
-static struct platform_device_id fsi_id_table[] = {
+static const struct platform_device_id fsi_id_table[] = {
{ "sh_fsi", (kernel_ulong_t)&fsi1_core },
{ "sh_fsi2", (kernel_ulong_t)&fsi2_core },
{},