misc: constify of_device_id array
authorFabian Frederick <fabf@skynet.be>
Mon, 16 Mar 2015 19:20:26 +0000 (20:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Mar 2015 20:10:28 +0000 (21:10 +0100)
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/carma/carma-fpga-program.c
drivers/misc/carma/carma-fpga.c
drivers/misc/lis3lv02d/lis3lv02d_i2c.c
drivers/misc/lis3lv02d/lis3lv02d_spi.c
drivers/misc/sram.c

index 06166ac000e08c8788725916b5a3a68469ac7e3a..fff8c43d9943f4b9994760a36ca322f98c2dfff5 100644 (file)
@@ -1142,7 +1142,7 @@ out_return:
        return ret;
 }
 
-static struct of_device_id fpga_of_match[] = {
+static const struct of_device_id fpga_of_match[] = {
        { .compatible = "carma,fpga-programmer", },
        {},
 };
index 68cdfe151bdb8481f964e6a12039e95dd85a8399..5aba3fd789deb25ddced039dab80bf4ae0489692 100644 (file)
@@ -1486,7 +1486,7 @@ static int data_of_remove(struct platform_device *op)
        return 0;
 }
 
-static struct of_device_id data_of_match[] = {
+static const struct of_device_id data_of_match[] = {
        { .compatible = "carma,carma-fpga", },
        {},
 };
index 63fe096d44621a3c771b500452240e234da6357b..e3e7f1dc27ba5df5daf8ad647953c10d92a69caa 100644 (file)
@@ -106,7 +106,7 @@ static union axis_conversion lis3lv02d_axis_map =
        { .as_array = { LIS3_DEV_X, LIS3_DEV_Y, LIS3_DEV_Z } };
 
 #ifdef CONFIG_OF
-static struct of_device_id lis3lv02d_i2c_dt_ids[] = {
+static const struct of_device_id lis3lv02d_i2c_dt_ids[] = {
        { .compatible = "st,lis3lv02d" },
        {}
 };
index bd06d0cfac45e15a2f1ee21f1e4ab856867e0e98..b2f6e1651ac941a37d5ff57bfde8ab0b286442da 100644 (file)
@@ -61,7 +61,7 @@ static union axis_conversion lis3lv02d_axis_normal =
        { .as_array = { 1, 2, 3 } };
 
 #ifdef CONFIG_OF
-static struct of_device_id lis302dl_spi_dt_ids[] = {
+static const struct of_device_id lis302dl_spi_dt_ids[] = {
        { .compatible = "st,lis302dl-spi" },
        {}
 };
index 21181fa243dfd8705f10e113f4293c990b231c37..1ed37cedff494b0054929f21bef3b6f06bc51421 100644 (file)
@@ -205,7 +205,7 @@ static int sram_remove(struct platform_device *pdev)
 }
 
 #ifdef CONFIG_OF
-static struct of_device_id sram_dt_ids[] = {
+static const struct of_device_id sram_dt_ids[] = {
        { .compatible = "mmio-sram" },
        {}
 };