mfd: Constify of_device_id array
authorFabian Frederick <fabf@skynet.be>
Mon, 16 Mar 2015 19:21:36 +0000 (20:21 +0100)
committerLee Jones <lee.jones@linaro.org>
Thu, 26 Mar 2015 14:20:18 +0000 (14:20 +0000)
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: Lee Jones <lee.jones@linaro.org>
drivers/mfd/hi6421-pmic-core.c
drivers/mfd/rk808.c
drivers/mfd/twl4030-power.c

index 7210ae28bf816cbbb612a219b5f57fd4c94a149c..95b2ff8f223ab34bc06f45c585d1a5a55e02c810 100644 (file)
@@ -93,7 +93,7 @@ static int hi6421_pmic_remove(struct platform_device *pdev)
        return 0;
 }
 
-static struct of_device_id of_hi6421_pmic_match_tbl[] = {
+static const struct of_device_id of_hi6421_pmic_match_tbl[] = {
        { .compatible = "hisilicon,hi6421-pmic", },
        { },
 };
index 7cf25c7c8d813cf4392fc9f2cc152495ad11cd12..4b1e4399754bf2950c5662d763e3763653137b9d 100644 (file)
@@ -246,7 +246,7 @@ static int rk808_remove(struct i2c_client *client)
        return 0;
 }
 
-static struct of_device_id rk808_of_match[] = {
+static const struct of_device_id rk808_of_match[] = {
        { .compatible = "rockchip,rk808" },
        { },
 };
index 3935092460374e3e93f1650c7e4e4b7b7aaa1a07..f440aed613056a2b1b506f7be43f598f19c26002 100644 (file)
@@ -829,7 +829,7 @@ static struct twl4030_power_data osc_off_idle = {
        .board_config           = osc_off_rconfig,
 };
 
-static struct of_device_id twl4030_power_of_match[] = {
+static const struct of_device_id twl4030_power_of_match[] = {
        {
                .compatible = "ti,twl4030-power",
        },
This page took 0.027411 seconds and 5 git commands to generate.