Commit add479ee authored by Philipp Zabel's avatar Philipp Zabel Committed by Stephen Boyd

clk: qcom: Make reset_control_ops const

The qcom_reset_ops structure is never modified. Make it const.
Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 7ba256d2
...@@ -55,7 +55,7 @@ qcom_reset_deassert(struct reset_controller_dev *rcdev, unsigned long id) ...@@ -55,7 +55,7 @@ qcom_reset_deassert(struct reset_controller_dev *rcdev, unsigned long id)
return regmap_update_bits(rst->regmap, map->reg, mask, 0); return regmap_update_bits(rst->regmap, map->reg, mask, 0);
} }
struct reset_control_ops qcom_reset_ops = { const struct reset_control_ops qcom_reset_ops = {
.reset = qcom_reset, .reset = qcom_reset,
.assert = qcom_reset_assert, .assert = qcom_reset_assert,
.deassert = qcom_reset_deassert, .deassert = qcom_reset_deassert,
......
...@@ -32,6 +32,6 @@ struct qcom_reset_controller { ...@@ -32,6 +32,6 @@ struct qcom_reset_controller {
#define to_qcom_reset_controller(r) \ #define to_qcom_reset_controller(r) \
container_of(r, struct qcom_reset_controller, rcdev); container_of(r, struct qcom_reset_controller, rcdev);
extern struct reset_control_ops qcom_reset_ops; extern const struct reset_control_ops qcom_reset_ops;
#endif #endif
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