]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
power: constify of_device_id array
authorFabian Frederick <fabf@skynet.be>
Mon, 16 Mar 2015 19:17:12 +0000 (20:17 +0100)
committerSebastian Reichel <sre@kernel.org>
Fri, 20 Mar 2015 12:23:06 +0000 (13:23 +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>
[for vexpress]
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/charger-manager.c
drivers/power/reset/at91-poweroff.c
drivers/power/reset/at91-reset.c
drivers/power/reset/hisi-reboot.c
drivers/power/reset/keystone-reset.c
drivers/power/reset/st-poweroff.c
drivers/power/reset/syscon-reboot.c
drivers/power/reset/vexpress-poweroff.c
drivers/power/reset/xgene-reboot.c
drivers/power/tps65090-charger.c

index e23b7ba2cbd2375f00406f24d8bd29bfc9402887..5933c1a585f4938d3c158fd2cc03c5ce01d0edc9 100644 (file)
@@ -1484,7 +1484,7 @@ static int cm_init_thermal_data(struct charger_manager *cm,
        return ret;
 }
 
-static struct of_device_id charger_manager_match[] = {
+static const struct of_device_id charger_manager_match[] = {
        {
                .compatible = "charger-manager",
        },
index 4b72ea51c3648b5a470b1eb7d3fd8e60741f4f63..9847cfb7e23dd3a27f9ac94c3185667b970d5de9 100644 (file)
@@ -140,7 +140,7 @@ static int at91_poweroff_probe(struct platform_device *pdev)
        return 0;
 }
 
-static struct of_device_id at91_poweroff_of_match[] = {
+static const struct of_device_id at91_poweroff_of_match[] = {
        { .compatible = "atmel,at91sam9260-shdwc", },
        { .compatible = "atmel,at91sam9rl-shdwc", },
        { .compatible = "atmel,at91sam9x5-shdwc", },
index 13584e24736a37ba682ba1db3ef7aeb46a0650cd..68b18962f73a5f6cdcbb713bd2d6c56d8f957af9 100644 (file)
@@ -152,14 +152,14 @@ static void __init at91_reset_status(struct platform_device *pdev)
        pr_info("AT91: Starting after %s\n", reason);
 }
 
-static struct of_device_id at91_ramc_of_match[] = {
+static const struct of_device_id at91_ramc_of_match[] = {
        { .compatible = "atmel,at91sam9260-sdramc", },
        { .compatible = "atmel,at91sam9g45-ddramc", },
        { .compatible = "atmel,sama5d3-ddramc", },
        { /* sentinel */ }
 };
 
-static struct of_device_id at91_reset_of_match[] = {
+static const struct of_device_id at91_reset_of_match[] = {
        { .compatible = "atmel,at91sam9260-rstc", .data = at91sam9260_restart },
        { .compatible = "atmel,at91sam9g45-rstc", .data = at91sam9g45_restart },
        { /* sentinel */ }
index 5385460e23bb20f17cc4e4da8eea81b9dd4bda80..9ab7f562a83ba6538054e1e39a8b758489a4f8d7 100644 (file)
@@ -64,7 +64,7 @@ static int hisi_reboot_probe(struct platform_device *pdev)
        return err;
 }
 
-static struct of_device_id hisi_reboot_of_match[] = {
+static const struct of_device_id hisi_reboot_of_match[] = {
        { .compatible = "hisilicon,sysctrl" },
        {}
 };
index faedf16c8111895a84b0724e32d2fb219b84fb38..c70f1bffe038b8ad02c6c4980b62e039090c15a4 100644 (file)
@@ -70,7 +70,7 @@ static struct notifier_block rsctrl_restart_nb = {
        .priority = 128,
 };
 
-static struct of_device_id rsctrl_of_match[] = {
+static const struct of_device_id rsctrl_of_match[] = {
        {.compatible = "ti,keystone-reset", },
        {},
 };
index 27383de9caa87b952a270512bd3d497d1f6a7321..a488877a3538c8c9761d1c8e468cdf1c3edb91de 100644 (file)
@@ -97,7 +97,7 @@ static struct notifier_block st_restart_nb = {
        .priority = 192,
 };
 
-static struct of_device_id st_reset_of_match[] = {
+static const struct of_device_id st_reset_of_match[] = {
        {
                .compatible = "st,stih415-restart",
                .data = (void *)&stih415_reset,
index c4049f45663f4b929a679e9ea548ed7bb4d18295..d3c7d245ae63d93c5ec36617e69331b25f9b570c 100644 (file)
@@ -76,7 +76,7 @@ static int syscon_reboot_probe(struct platform_device *pdev)
        return err;
 }
 
-static struct of_device_id syscon_reboot_of_match[] = {
+static const struct of_device_id syscon_reboot_of_match[] = {
        { .compatible = "syscon-reboot" },
        {}
 };
index be12d9b92957d07c9da3f52335016b3c417f96a6..6a9bf7089373600120739f8f51829ba07344f8aa 100644 (file)
@@ -80,7 +80,7 @@ DEVICE_ATTR(active, S_IRUGO | S_IWUSR, vexpress_reset_active_show,
 
 enum vexpress_reset_func { FUNC_RESET, FUNC_SHUTDOWN, FUNC_REBOOT };
 
-static struct of_device_id vexpress_reset_of_match[] = {
+static const struct of_device_id vexpress_reset_of_match[] = {
        {
                .compatible = "arm,vexpress-reset",
                .data = (void *)FUNC_RESET,
index b0e5002f8debee0c95515bfd217e8d3a85844675..f07e93c97ba337624d202b19b55ab46fda170b21 100644 (file)
@@ -87,7 +87,7 @@ static int xgene_reboot_probe(struct platform_device *pdev)
        return err;
 }
 
-static struct of_device_id xgene_reboot_of_match[] = {
+static const struct of_device_id xgene_reboot_of_match[] = {
        { .compatible = "apm,xgene-reboot" },
        {}
 };
index dcf9a3ca53d536f68c9dff082f287d0bc36b7c50..7e8fbd29c30eee6874bda989e4552972040e8b52 100644 (file)
@@ -349,7 +349,7 @@ static int tps65090_charger_remove(struct platform_device *pdev)
        return 0;
 }
 
-static struct of_device_id of_tps65090_charger_match[] = {
+static const struct of_device_id of_tps65090_charger_match[] = {
        { .compatible = "ti,tps65090-charger", },
        { /* end */ }
 };