[media] constify of_device_id array
authorFabian Frederick <fabf@skynet.be>
Mon, 16 Mar 2015 19:54:33 +0000 (16:54 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 12 May 2015 06:58:16 +0000 (03:58 -0300)
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)

[mchehab@osg.samsung.com: fix a merge conflict at adv7604.c]
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Acked-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/adv7604.c
drivers/media/platform/fsl-viu.c
drivers/media/platform/soc_camera/rcar_vin.c
drivers/media/rc/gpio-ir-recv.c
drivers/media/rc/ir-hix5hd2.c
drivers/media/rc/st_rc.c

index c1be0f721727f13eb9a2dcfaf8307e37feaa165b..be3f8660e457007047fdfa284bb485208999bb1e 100644 (file)
@@ -2642,14 +2642,14 @@ static const struct adv76xx_chip_info adv76xx_chip_info[] = {
        },
 };
 
-static struct i2c_device_id adv76xx_i2c_id[] = {
+static const struct i2c_device_id adv76xx_i2c_id[] = {
        { "adv7604", (kernel_ulong_t)&adv76xx_chip_info[ADV7604] },
        { "adv7611", (kernel_ulong_t)&adv76xx_chip_info[ADV7611] },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, adv76xx_i2c_id);
 
-static struct of_device_id adv76xx_of_id[] __maybe_unused = {
+static const struct of_device_id adv76xx_of_id[] __maybe_unused = {
        { .compatible = "adi,adv7611", .data = &adv76xx_chip_info[ADV7611] },
        { }
 };
index bbf42810487100b65ce625ff652069c4c9114f91..5b76e3db6a922d54eaad89275eb578ea9dd9874a 100644 (file)
@@ -1664,7 +1664,7 @@ static int viu_resume(struct platform_device *op)
 /*
  * Initialization and module stuff
  */
-static struct of_device_id mpc512x_viu_of_match[] = {
+static const struct of_device_id mpc512x_viu_of_match[] = {
        {
                .compatible = "fsl,mpc5121-viu",
        },
index 4c30d0dbdb301e2929352a0a78364b78f221a02d..4dc3288ddd06cc6f4977d2ae2e24762c9020385e 100644 (file)
@@ -1821,7 +1821,7 @@ static struct soc_camera_host_ops rcar_vin_host_ops = {
 };
 
 #ifdef CONFIG_OF
-static struct of_device_id rcar_vin_of_table[] = {
+static const struct of_device_id rcar_vin_of_table[] = {
        { .compatible = "renesas,vin-r8a7794", .data = (void *)RCAR_GEN2 },
        { .compatible = "renesas,vin-r8a7793", .data = (void *)RCAR_GEN2 },
        { .compatible = "renesas,vin-r8a7791", .data = (void *)RCAR_GEN2 },
index 229853d68451a6ac1d9d253b2c97818af4e40702..707df54226662495226973aac10adfb759b72549 100644 (file)
@@ -59,7 +59,7 @@ static int gpio_ir_recv_get_devtree_pdata(struct device *dev,
        return 0;
 }
 
-static struct of_device_id gpio_ir_recv_of_match[] = {
+static const struct of_device_id gpio_ir_recv_of_match[] = {
        { .compatible = "gpio-ir-receiver", },
        { },
 };
index 58ec5986274ed79b0191a440696912e38f940e0b..838e29e3fd6924f9a54092a0c27ed1d60fb128a3 100644 (file)
@@ -319,7 +319,7 @@ static int hix5hd2_ir_resume(struct device *dev)
 static SIMPLE_DEV_PM_OPS(hix5hd2_ir_pm_ops, hix5hd2_ir_suspend,
                         hix5hd2_ir_resume);
 
-static struct of_device_id hix5hd2_ir_table[] = {
+static const struct of_device_id hix5hd2_ir_table[] = {
        { .compatible = "hisilicon,hix5hd2-ir", },
        {},
 };
index 0e758ae2e52978b0b76a026d43799a9b75c42fe0..50ea09da7739f5c82d26ee8332db3b4709a95200 100644 (file)
@@ -381,7 +381,7 @@ static int st_rc_resume(struct device *dev)
 static SIMPLE_DEV_PM_OPS(st_rc_pm_ops, st_rc_suspend, st_rc_resume);
 
 #ifdef CONFIG_OF
-static struct of_device_id st_rc_match[] = {
+static const struct of_device_id st_rc_match[] = {
        { .compatible = "st,comms-irb", },
        {},
 };
This page took 0.029969 seconds and 5 git commands to generate.