diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-05-15 02:46:11 -0400 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2014-06-02 13:29:37 -0400 |
commit | eae45e5dd229d5c6f0aed9789a5d1e84f7ea6100 (patch) | |
tree | f0078f8043e9d7b10f90393c1007e78f1444c3c3 | |
parent | 46797a2adbf0cdc3be17707dc64e872eeed86a8a (diff) |
i2c: Make of_device_id array const
Make of_device_id array const, because all OF functions
handle it as const.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Peter Korsgaard <peter@korsgaard.com>
Acked-by: Maxime Coquelin <maxime.coquelin@st.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
-rw-r--r-- | drivers/i2c/busses/i2c-ocores.c | 2 | ||||
-rw-r--r-- | drivers/i2c/busses/i2c-pxa.c | 2 | ||||
-rw-r--r-- | drivers/i2c/busses/i2c-riic.c | 2 | ||||
-rw-r--r-- | drivers/i2c/busses/i2c-st.c | 2 | ||||
-rw-r--r-- | drivers/i2c/busses/i2c-wmt.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/drivers/i2c/busses/i2c-ocores.c b/drivers/i2c/busses/i2c-ocores.c index 1f6369f14fb6..0e10cc6182f0 100644 --- a/drivers/i2c/busses/i2c-ocores.c +++ b/drivers/i2c/busses/i2c-ocores.c | |||
@@ -250,7 +250,7 @@ static struct i2c_adapter ocores_adapter = { | |||
250 | .algo = &ocores_algorithm, | 250 | .algo = &ocores_algorithm, |
251 | }; | 251 | }; |
252 | 252 | ||
253 | static struct of_device_id ocores_i2c_match[] = { | 253 | static const struct of_device_id ocores_i2c_match[] = { |
254 | { | 254 | { |
255 | .compatible = "opencores,i2c-ocores", | 255 | .compatible = "opencores,i2c-ocores", |
256 | .data = (void *)TYPE_OCORES, | 256 | .data = (void *)TYPE_OCORES, |
diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c index bbe6dfbc5c05..be671f7a0e06 100644 --- a/drivers/i2c/busses/i2c-pxa.c +++ b/drivers/i2c/busses/i2c-pxa.c | |||
@@ -1084,7 +1084,7 @@ static const struct i2c_algorithm i2c_pxa_pio_algorithm = { | |||
1084 | .functionality = i2c_pxa_functionality, | 1084 | .functionality = i2c_pxa_functionality, |
1085 | }; | 1085 | }; |
1086 | 1086 | ||
1087 | static struct of_device_id i2c_pxa_dt_ids[] = { | 1087 | static const struct of_device_id i2c_pxa_dt_ids[] = { |
1088 | { .compatible = "mrvl,pxa-i2c", .data = (void *)REGS_PXA2XX }, | 1088 | { .compatible = "mrvl,pxa-i2c", .data = (void *)REGS_PXA2XX }, |
1089 | { .compatible = "mrvl,pwri2c", .data = (void *)REGS_PXA3XX }, | 1089 | { .compatible = "mrvl,pwri2c", .data = (void *)REGS_PXA3XX }, |
1090 | { .compatible = "mrvl,mmp-twsi", .data = (void *)REGS_PXA2XX }, | 1090 | { .compatible = "mrvl,mmp-twsi", .data = (void *)REGS_PXA2XX }, |
diff --git a/drivers/i2c/busses/i2c-riic.c b/drivers/i2c/busses/i2c-riic.c index 9e1f8bacfb39..af3b3d032a9f 100644 --- a/drivers/i2c/busses/i2c-riic.c +++ b/drivers/i2c/busses/i2c-riic.c | |||
@@ -404,7 +404,7 @@ static int riic_i2c_remove(struct platform_device *pdev) | |||
404 | return 0; | 404 | return 0; |
405 | } | 405 | } |
406 | 406 | ||
407 | static struct of_device_id riic_i2c_dt_ids[] = { | 407 | static const struct of_device_id riic_i2c_dt_ids[] = { |
408 | { .compatible = "renesas,riic-rz" }, | 408 | { .compatible = "renesas,riic-rz" }, |
409 | { /* Sentinel */ }, | 409 | { /* Sentinel */ }, |
410 | }; | 410 | }; |
diff --git a/drivers/i2c/busses/i2c-st.c b/drivers/i2c/busses/i2c-st.c index 872016196ef3..95b947670386 100644 --- a/drivers/i2c/busses/i2c-st.c +++ b/drivers/i2c/busses/i2c-st.c | |||
@@ -847,7 +847,7 @@ static int st_i2c_remove(struct platform_device *pdev) | |||
847 | return 0; | 847 | return 0; |
848 | } | 848 | } |
849 | 849 | ||
850 | static struct of_device_id st_i2c_match[] = { | 850 | static const struct of_device_id st_i2c_match[] = { |
851 | { .compatible = "st,comms-ssc-i2c", }, | 851 | { .compatible = "st,comms-ssc-i2c", }, |
852 | { .compatible = "st,comms-ssc4-i2c", }, | 852 | { .compatible = "st,comms-ssc4-i2c", }, |
853 | {}, | 853 | {}, |
diff --git a/drivers/i2c/busses/i2c-wmt.c b/drivers/i2c/busses/i2c-wmt.c index 889a212b6c3d..f80a38c2072c 100644 --- a/drivers/i2c/busses/i2c-wmt.c +++ b/drivers/i2c/busses/i2c-wmt.c | |||
@@ -452,7 +452,7 @@ static int wmt_i2c_remove(struct platform_device *pdev) | |||
452 | return 0; | 452 | return 0; |
453 | } | 453 | } |
454 | 454 | ||
455 | static struct of_device_id wmt_i2c_dt_ids[] = { | 455 | static const struct of_device_id wmt_i2c_dt_ids[] = { |
456 | { .compatible = "wm,wm8505-i2c" }, | 456 | { .compatible = "wm,wm8505-i2c" }, |
457 | { /* Sentinel */ }, | 457 | { /* Sentinel */ }, |
458 | }; | 458 | }; |