reset: sti: constify of_device_id array
authorFabian Frederick <fabf@skynet.be>
Mon, 16 Mar 2015 19:54:37 +0000 (20:54 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 3 Aug 2015 11:13:50 +0000 (13:13 +0200)
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>
Acked-by: Maxime Coquelin <maxime.coquelin@st.com>
Acked-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/reset/sti/reset-stih407.c
drivers/reset/sti/reset-stih415.c
drivers/reset/sti/reset-stih416.c

index f7a6cb0939833c0502fbd4e22c056aeb2665d5f6..827eb3dae47de95e4ab0960a0c2fce4dd0be6dda 100644 (file)
@@ -126,7 +126,7 @@ static const struct syscfg_reset_controller_data stih407_picophyreset_controller
        .channels = stih407_picophyresets,
 };
 
-static struct of_device_id stih407_reset_match[] = {
+static const struct of_device_id stih407_reset_match[] = {
        {
                .compatible = "st,stih407-powerdown",
                .data = &stih407_powerdown_controller,
index f7b49d5a62dc9390e044b0f9e3f5b3d8cf955df3..6f220cdbef46ce5246164a9c434a4c976dfc5823 100644 (file)
@@ -89,7 +89,7 @@ static struct syscfg_reset_controller_data stih415_softreset_controller = {
        .channels = stih415_softresets,
 };
 
-static struct of_device_id stih415_reset_match[] = {
+static const struct of_device_id stih415_reset_match[] = {
        { .compatible = "st,stih415-powerdown",
          .data = &stih415_powerdown_controller, },
        { .compatible = "st,stih415-softreset",
index d65a82e74004eef349b40eb9d03c191b90861433..c581d606ef0f76f482610fd1933fd3563a853f2b 100644 (file)
@@ -120,7 +120,7 @@ static struct syscfg_reset_controller_data stih416_softreset_controller = {
        .channels = stih416_softresets,
 };
 
-static struct of_device_id stih416_reset_match[] = {
+static const struct of_device_id stih416_reset_match[] = {
        { .compatible = "st,stih416-powerdown",
          .data = &stih416_powerdown_controller, },
        { .compatible = "st,stih416-softreset",