提交 e9a02a3d 编写于 作者: K Krzysztof Kozlowski 提交者: Wolfram Sang

i2c: constify platform_device_id

The platform_device_id is not modified by these drivers and core uses it
as const.
Signed-off-by: NKrzysztof Kozlowski <k.kozlowski.k@gmail.com>
Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
上级 096ea30c
...@@ -241,7 +241,7 @@ static struct imx_i2c_hwdata vf610_i2c_hwdata = { ...@@ -241,7 +241,7 @@ static struct imx_i2c_hwdata vf610_i2c_hwdata = {
}; };
static struct platform_device_id imx_i2c_devtype[] = { static const struct platform_device_id imx_i2c_devtype[] = {
{ {
.name = "imx1-i2c", .name = "imx1-i2c",
.driver_data = (kernel_ulong_t)&imx1_i2c_hwdata, .driver_data = (kernel_ulong_t)&imx1_i2c_hwdata,
......
...@@ -784,7 +784,7 @@ static int mxs_i2c_get_ofdata(struct mxs_i2c_dev *i2c) ...@@ -784,7 +784,7 @@ static int mxs_i2c_get_ofdata(struct mxs_i2c_dev *i2c)
return 0; return 0;
} }
static struct platform_device_id mxs_i2c_devtype[] = { static const struct platform_device_id mxs_i2c_devtype[] = {
{ {
.name = "imx23-i2c", .name = "imx23-i2c",
.driver_data = MXS_I2C_V1, .driver_data = MXS_I2C_V1,
......
...@@ -713,7 +713,7 @@ static int rcar_i2c_remove(struct platform_device *pdev) ...@@ -713,7 +713,7 @@ static int rcar_i2c_remove(struct platform_device *pdev)
return 0; return 0;
} }
static struct platform_device_id rcar_i2c_id_table[] = { static const struct platform_device_id rcar_i2c_id_table[] = {
{ "i2c-rcar", I2C_RCAR_GEN1 }, { "i2c-rcar", I2C_RCAR_GEN1 },
{ "i2c-rcar_gen1", I2C_RCAR_GEN1 }, { "i2c-rcar_gen1", I2C_RCAR_GEN1 },
{ "i2c-rcar_gen2", I2C_RCAR_GEN2 }, { "i2c-rcar_gen2", I2C_RCAR_GEN2 },
......
...@@ -132,7 +132,7 @@ struct s3c24xx_i2c { ...@@ -132,7 +132,7 @@ struct s3c24xx_i2c {
unsigned int sys_i2c_cfg; unsigned int sys_i2c_cfg;
}; };
static struct platform_device_id s3c24xx_driver_ids[] = { static const struct platform_device_id s3c24xx_driver_ids[] = {
{ {
.name = "s3c2410-i2c", .name = "s3c2410-i2c",
.driver_data = 0, .driver_data = 0,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册