Skip to content

Commit

Permalink
clk: sunxi: Make reset_control_ops const
Browse files Browse the repository at this point in the history
The sunxi_ve_reset_ops, sun9i_mmc_reset_ops, and sunxi_usb_reset_ops
structures are never modified. Make them const.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
  • Loading branch information
Philipp Zabel authored and Stephen Boyd committed Mar 29, 2016
1 parent b1b69c5 commit 5e7bc9c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/clk/sunxi/clk-a10-ve.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ static int sunxi_ve_of_xlate(struct reset_controller_dev *rcdev,
return 0;
}

static struct reset_control_ops sunxi_ve_reset_ops = {
static const struct reset_control_ops sunxi_ve_reset_ops = {
.assert = sunxi_ve_reset_assert,
.deassert = sunxi_ve_reset_deassert,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/clk/sunxi/clk-sun9i-mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ static int sun9i_mmc_reset_deassert(struct reset_controller_dev *rcdev,
return 0;
}

static struct reset_control_ops sun9i_mmc_reset_ops = {
static const struct reset_control_ops sun9i_mmc_reset_ops = {
.assert = sun9i_mmc_reset_assert,
.deassert = sun9i_mmc_reset_deassert,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/clk/sunxi/clk-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ static int sunxi_usb_reset_deassert(struct reset_controller_dev *rcdev,
return 0;
}

static struct reset_control_ops sunxi_usb_reset_ops = {
static const struct reset_control_ops sunxi_usb_reset_ops = {
.assert = sunxi_usb_reset_assert,
.deassert = sunxi_usb_reset_deassert,
};
Expand Down

0 comments on commit 5e7bc9c

Please sign in to comment.