Input: constify of_device_id arrays
authorFabian Frederick <fabf@skynet.be>
Wed, 18 Mar 2015 16:58:47 +0000 (09:58 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 19 Mar 2015 19:16:18 +0000 (12:16 -0700)
of_device_id is always used as const argument (See driver.of_match_table
and open firmware functions).

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/palmas-pwrbutton.c
drivers/input/misc/regulator-haptic.c
drivers/input/misc/tps65218-pwrbutton.c
drivers/input/touchscreen/ar1021_i2c.c

index 1f9b5ee927460c74f8c1dc49ee9d9dc0755d3f50..1e1baed63929084f96fe79f47f7b0d8c440960e9 100644 (file)
@@ -304,7 +304,7 @@ static SIMPLE_DEV_PM_OPS(palmas_pwron_pm,
                         palmas_pwron_suspend, palmas_pwron_resume);
 
 #ifdef CONFIG_OF
-static struct of_device_id of_palmas_pwr_match[] = {
+static const struct of_device_id of_palmas_pwr_match[] = {
        { .compatible = "ti,palmas-pwrbutton" },
        { },
 };
index 132eb914ea3e0e9883a89dc04470217631270c04..6bf3f1082f71ea6c6802fe7e4b73a4c5378df120 100644 (file)
@@ -245,7 +245,7 @@ static int __maybe_unused regulator_haptic_resume(struct device *dev)
 static SIMPLE_DEV_PM_OPS(regulator_haptic_pm_ops,
                regulator_haptic_suspend, regulator_haptic_resume);
 
-static struct of_device_id regulator_haptic_dt_match[] = {
+static const struct of_device_id regulator_haptic_dt_match[] = {
        { .compatible = "regulator-haptic" },
        { /* sentinel */ },
 };
index 54508dec4eb308e74579b04f73c201a257307372..a39b62651a4b334d452fd2105848a8a0e7add473 100644 (file)
@@ -106,7 +106,7 @@ static int tps65218_pwron_probe(struct platform_device *pdev)
        return 0;
 }
 
-static struct of_device_id of_tps65218_pwr_match[] = {
+static const struct of_device_id of_tps65218_pwr_match[] = {
        { .compatible = "ti,tps65218-pwrbutton" },
        { },
 };
index ba30578e296e4efa3032b307388975d7a6ec9172..f0b954d46a259726d94766e0191f4523351c748a 100644 (file)
@@ -157,7 +157,7 @@ static const struct i2c_device_id ar1021_i2c_id[] = {
 };
 MODULE_DEVICE_TABLE(i2c, ar1021_i2c_id);
 
-static struct of_device_id ar1021_i2c_of_match[] = {
+static const struct of_device_id ar1021_i2c_of_match[] = {
        { .compatible = "microchip,ar1021-i2c", },
        { }
 };