Skip to content

Commit

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

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
  • Loading branch information
Philipp Zabel committed Feb 10, 2016
1 parent 387eb3f commit 356d108
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/reset/reset-zynq.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ static int zynq_reset_status(struct reset_controller_dev *rcdev,
return !!(reg & BIT(offset));
}

static struct reset_control_ops zynq_reset_ops = {
static const struct reset_control_ops zynq_reset_ops = {
.assert = zynq_reset_assert,
.deassert = zynq_reset_deassert,
.status = zynq_reset_status,
Expand Down

0 comments on commit 356d108

Please sign in to comment.