Commit 1d10a65f authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Uwe Kleine-König

i2c/mpc: make data used as *of_device_id.data const

Since of_device_id.data is declared as a pointer to const data a few
more consts can be added in this driver.

[ukl: split Arnd's patch by driver]
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Acked-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
parent e27d650b
...@@ -730,24 +730,24 @@ static int mpc_i2c_resume(struct device *dev) ...@@ -730,24 +730,24 @@ static int mpc_i2c_resume(struct device *dev)
SIMPLE_DEV_PM_OPS(mpc_i2c_pm_ops, mpc_i2c_suspend, mpc_i2c_resume); SIMPLE_DEV_PM_OPS(mpc_i2c_pm_ops, mpc_i2c_suspend, mpc_i2c_resume);
#endif #endif
static struct mpc_i2c_data mpc_i2c_data_512x __devinitdata = { static const struct mpc_i2c_data mpc_i2c_data_512x __devinitdata = {
.setup = mpc_i2c_setup_512x, .setup = mpc_i2c_setup_512x,
}; };
static struct mpc_i2c_data mpc_i2c_data_52xx __devinitdata = { static const struct mpc_i2c_data mpc_i2c_data_52xx __devinitdata = {
.setup = mpc_i2c_setup_52xx, .setup = mpc_i2c_setup_52xx,
}; };
static struct mpc_i2c_data mpc_i2c_data_8313 __devinitdata = { static const struct mpc_i2c_data mpc_i2c_data_8313 __devinitdata = {
.setup = mpc_i2c_setup_8xxx, .setup = mpc_i2c_setup_8xxx,
}; };
static struct mpc_i2c_data mpc_i2c_data_8543 __devinitdata = { static const struct mpc_i2c_data mpc_i2c_data_8543 __devinitdata = {
.setup = mpc_i2c_setup_8xxx, .setup = mpc_i2c_setup_8xxx,
.prescaler = 2, .prescaler = 2,
}; };
static struct mpc_i2c_data mpc_i2c_data_8544 __devinitdata = { static const struct mpc_i2c_data mpc_i2c_data_8544 __devinitdata = {
.setup = mpc_i2c_setup_8xxx, .setup = mpc_i2c_setup_8xxx,
.prescaler = 3, .prescaler = 3,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment