]> git.karo-electronics.de Git - linux-beck.git/commitdiff
i2c: Make of_device_id array const
authorJingoo Han <jg1.han@samsung.com>
Thu, 15 May 2014 06:46:11 +0000 (15:46 +0900)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 2 Jun 2014 17:29:37 +0000 (19:29 +0200)
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>
drivers/i2c/busses/i2c-ocores.c
drivers/i2c/busses/i2c-pxa.c
drivers/i2c/busses/i2c-riic.c
drivers/i2c/busses/i2c-st.c
drivers/i2c/busses/i2c-wmt.c

index 1f6369f14fb62e33286edbb51d2d324d55300c0b..0e10cc6182f0b177d79547a51a506c132c00c22e 100644 (file)
@@ -250,7 +250,7 @@ static struct i2c_adapter ocores_adapter = {
        .algo           = &ocores_algorithm,
 };
 
-static struct of_device_id ocores_i2c_match[] = {
+static const struct of_device_id ocores_i2c_match[] = {
        {
                .compatible = "opencores,i2c-ocores",
                .data = (void *)TYPE_OCORES,
index bbe6dfbc5c05da4917ad0d295f2c32659ce29dfc..be671f7a0e0670c98151d6829dc22e2129eeba3f 100644 (file)
@@ -1084,7 +1084,7 @@ static const struct i2c_algorithm i2c_pxa_pio_algorithm = {
        .functionality  = i2c_pxa_functionality,
 };
 
-static struct of_device_id i2c_pxa_dt_ids[] = {
+static const struct of_device_id i2c_pxa_dt_ids[] = {
        { .compatible = "mrvl,pxa-i2c", .data = (void *)REGS_PXA2XX },
        { .compatible = "mrvl,pwri2c", .data = (void *)REGS_PXA3XX },
        { .compatible = "mrvl,mmp-twsi", .data = (void *)REGS_PXA2XX },
index 9e1f8bacfb39a5f8083bb88885c1ce5993f4e1f0..af3b3d032a9f4c044b96f44d9113e1ca64161bab 100644 (file)
@@ -404,7 +404,7 @@ static int riic_i2c_remove(struct platform_device *pdev)
        return 0;
 }
 
-static struct of_device_id riic_i2c_dt_ids[] = {
+static const struct of_device_id riic_i2c_dt_ids[] = {
        { .compatible = "renesas,riic-rz" },
        { /* Sentinel */ },
 };
index 872016196ef3fcc4714651b484f84d67766d429c..95b94767038601220e283265c7f9391995de7205 100644 (file)
@@ -847,7 +847,7 @@ static int st_i2c_remove(struct platform_device *pdev)
        return 0;
 }
 
-static struct of_device_id st_i2c_match[] = {
+static const struct of_device_id st_i2c_match[] = {
        { .compatible = "st,comms-ssc-i2c", },
        { .compatible = "st,comms-ssc4-i2c", },
        {},
index 889a212b6c3da313efc52f3bd92b48442efc92e5..f80a38c2072c45925c846224247f67a0e8330c07 100644 (file)
@@ -452,7 +452,7 @@ static int wmt_i2c_remove(struct platform_device *pdev)
        return 0;
 }
 
-static struct of_device_id wmt_i2c_dt_ids[] = {
+static const struct of_device_id wmt_i2c_dt_ids[] = {
        { .compatible = "wm,wm8505-i2c" },
        { /* Sentinel */ },
 };