Skip to content

Commit

Permalink
reset: sti: constify of_device_id array
Browse files Browse the repository at this point in the history
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)

Signed-off-by: Fabian Frederick <[email protected]>
Acked-by: Maxime Coquelin <[email protected]>
Acked-by: Patrice Chotard <[email protected]>
Signed-off-by: Philipp Zabel <[email protected]>
  • Loading branch information
Fabian Frederick authored and pH5 committed Aug 3, 2015
1 parent efdf5aa commit a518db4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/reset/sti/reset-stih407.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion drivers/reset/sti/reset-stih415.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion drivers/reset/sti/reset-stih416.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit a518db4

Please sign in to comment.