i2c: constify platform_device_id
authorKrzysztof Kozlowski <k.kozlowski.k@gmail.com>
Fri, 1 May 2015 15:54:25 +0000 (00:54 +0900)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 12 May 2015 16:27:48 +0000 (18:27 +0200)
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>
drivers/i2c/busses/i2c-imx.c
drivers/i2c/busses/i2c-mxs.c
drivers/i2c/busses/i2c-rcar.c
drivers/i2c/busses/i2c-s3c2410.c

index a53a7dd6694545c2fce0d522a1129f8993babad0..785aa674a4da19524a94be3aa6c9b5d66cc8058c 100644 (file)
@@ -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",
                .driver_data = (kernel_ulong_t)&imx1_i2c_hwdata,
index 3e84f6c090a56979279fa4508d486461b9ede17b..033846cdf266227a767b24546c8eda54444f2d3c 100644 (file)
@@ -784,7 +784,7 @@ static int mxs_i2c_get_ofdata(struct mxs_i2c_dev *i2c)
        return 0;
 }
 
-static struct platform_device_id mxs_i2c_devtype[] = {
+static const struct platform_device_id mxs_i2c_devtype[] = {
        {
                .name = "imx23-i2c",
                .driver_data = MXS_I2C_V1,
index 5a84bea5b84514389ae6c01c2b2b2a8eadc85346..06f34d1c5121e4fd44f73c85cc2c116da29c69df 100644 (file)
@@ -713,7 +713,7 @@ static int rcar_i2c_remove(struct platform_device *pdev)
        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_gen1",      I2C_RCAR_GEN1 },
        { "i2c-rcar_gen2",      I2C_RCAR_GEN2 },
index 958c8db4ec30740e2d9aae00a7835256700d3424..c1f0e62d1bb138a440200fa3955636d562a624f8 100644 (file)
@@ -132,7 +132,7 @@ struct s3c24xx_i2c {
        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",
                .driver_data    = 0,