Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

i2c: constify platform_device_id

The platform_device_id is not modified by these drivers and core uses it
as const.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>

authored by

Krzysztof Kozlowski and committed by
Wolfram Sang
e9a02a3d 096ea30c

+4 -4
+1 -1
drivers/i2c/busses/i2c-imx.c
··· 241 241 242 242 }; 243 243 244 - static struct platform_device_id imx_i2c_devtype[] = { 244 + static const struct platform_device_id imx_i2c_devtype[] = { 245 245 { 246 246 .name = "imx1-i2c", 247 247 .driver_data = (kernel_ulong_t)&imx1_i2c_hwdata,
+1 -1
drivers/i2c/busses/i2c-mxs.c
··· 784 784 return 0; 785 785 } 786 786 787 - static struct platform_device_id mxs_i2c_devtype[] = { 787 + static const struct platform_device_id mxs_i2c_devtype[] = { 788 788 { 789 789 .name = "imx23-i2c", 790 790 .driver_data = MXS_I2C_V1,
+1 -1
drivers/i2c/busses/i2c-rcar.c
··· 713 713 return 0; 714 714 } 715 715 716 - static struct platform_device_id rcar_i2c_id_table[] = { 716 + static const struct platform_device_id rcar_i2c_id_table[] = { 717 717 { "i2c-rcar", I2C_RCAR_GEN1 }, 718 718 { "i2c-rcar_gen1", I2C_RCAR_GEN1 }, 719 719 { "i2c-rcar_gen2", I2C_RCAR_GEN2 },
+1 -1
drivers/i2c/busses/i2c-s3c2410.c
··· 132 132 unsigned int sys_i2c_cfg; 133 133 }; 134 134 135 - static struct platform_device_id s3c24xx_driver_ids[] = { 135 + static const struct platform_device_id s3c24xx_driver_ids[] = { 136 136 { 137 137 .name = "s3c2410-i2c", 138 138 .driver_data = 0,