Skip to content

Commit

Permalink
reset: zynqmp: Make reset_control_ops const
Browse files Browse the repository at this point in the history
The zynqmp_reset_ops structure is never modified. Make it const.

Acked-by: Michal Simek <[email protected]>
Signed-off-by: Philipp Zabel <[email protected]>
  • Loading branch information
pH5 committed Oct 22, 2019
1 parent b1418bc commit c1b065b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/reset/reset-zynqmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ static int zynqmp_reset_reset(struct reset_controller_dev *rcdev,
PM_RESET_ACTION_PULSE);
}

static struct reset_control_ops zynqmp_reset_ops = {
static const struct reset_control_ops zynqmp_reset_ops = {
.reset = zynqmp_reset_reset,
.assert = zynqmp_reset_assert,
.deassert = zynqmp_reset_deassert,
Expand Down

0 comments on commit c1b065b

Please sign in to comment.