Commit 5e7bc9c6 authored by Philipp Zabel's avatar Philipp Zabel Committed by Stephen Boyd

clk: sunxi: Make reset_control_ops const

The sunxi_ve_reset_ops, sun9i_mmc_reset_ops, and sunxi_usb_reset_ops
structures are never modified. Make them const.
Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent b1b69c5d
...@@ -85,7 +85,7 @@ static int sunxi_ve_of_xlate(struct reset_controller_dev *rcdev, ...@@ -85,7 +85,7 @@ static int sunxi_ve_of_xlate(struct reset_controller_dev *rcdev,
return 0; 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, .assert = sunxi_ve_reset_assert,
.deassert = sunxi_ve_reset_deassert, .deassert = sunxi_ve_reset_deassert,
}; };
......
...@@ -83,7 +83,7 @@ static int sun9i_mmc_reset_deassert(struct reset_controller_dev *rcdev, ...@@ -83,7 +83,7 @@ static int sun9i_mmc_reset_deassert(struct reset_controller_dev *rcdev,
return 0; 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, .assert = sun9i_mmc_reset_assert,
.deassert = sun9i_mmc_reset_deassert, .deassert = sun9i_mmc_reset_deassert,
}; };
......
...@@ -76,7 +76,7 @@ static int sunxi_usb_reset_deassert(struct reset_controller_dev *rcdev, ...@@ -76,7 +76,7 @@ static int sunxi_usb_reset_deassert(struct reset_controller_dev *rcdev,
return 0; 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, .assert = sunxi_usb_reset_assert,
.deassert = sunxi_usb_reset_deassert, .deassert = sunxi_usb_reset_deassert,
}; };
......
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