Commit a518db45 authored by Fabian Frederick's avatar Fabian Frederick Committed by Philipp Zabel

reset: sti: constify of_device_id array

of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Acked-by: default avatarMaxime Coquelin <maxime.coquelin@st.com>
Acked-by: default avatarPatrice Chotard <patrice.chotard@st.com>
Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
parent efdf5aa8
...@@ -126,7 +126,7 @@ static const struct syscfg_reset_controller_data stih407_picophyreset_controller ...@@ -126,7 +126,7 @@ static const struct syscfg_reset_controller_data stih407_picophyreset_controller
.channels = stih407_picophyresets, .channels = stih407_picophyresets,
}; };
static struct of_device_id stih407_reset_match[] = { static const struct of_device_id stih407_reset_match[] = {
{ {
.compatible = "st,stih407-powerdown", .compatible = "st,stih407-powerdown",
.data = &stih407_powerdown_controller, .data = &stih407_powerdown_controller,
......
...@@ -89,7 +89,7 @@ static struct syscfg_reset_controller_data stih415_softreset_controller = { ...@@ -89,7 +89,7 @@ static struct syscfg_reset_controller_data stih415_softreset_controller = {
.channels = stih415_softresets, .channels = stih415_softresets,
}; };
static struct of_device_id stih415_reset_match[] = { static const struct of_device_id stih415_reset_match[] = {
{ .compatible = "st,stih415-powerdown", { .compatible = "st,stih415-powerdown",
.data = &stih415_powerdown_controller, }, .data = &stih415_powerdown_controller, },
{ .compatible = "st,stih415-softreset", { .compatible = "st,stih415-softreset",
......
...@@ -120,7 +120,7 @@ static struct syscfg_reset_controller_data stih416_softreset_controller = { ...@@ -120,7 +120,7 @@ static struct syscfg_reset_controller_data stih416_softreset_controller = {
.channels = stih416_softresets, .channels = stih416_softresets,
}; };
static struct of_device_id stih416_reset_match[] = { static const struct of_device_id stih416_reset_match[] = {
{ .compatible = "st,stih416-powerdown", { .compatible = "st,stih416-powerdown",
.data = &stih416_powerdown_controller, }, .data = &stih416_powerdown_controller, },
{ .compatible = "st,stih416-softreset", { .compatible = "st,stih416-softreset",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment