Skip to content

Commit

Permalink
clk: qcom: Make reset_control_ops const
Browse files Browse the repository at this point in the history
The qcom_reset_ops structure is never modified. Make it 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 7ba256d commit add479e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/clk/qcom/reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

struct reset_control_ops qcom_reset_ops = {
const struct reset_control_ops qcom_reset_ops = {
.reset = qcom_reset,
.assert = qcom_reset_assert,
.deassert = qcom_reset_deassert,
Expand Down
2 changes: 1 addition & 1 deletion drivers/clk/qcom/reset.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ struct qcom_reset_controller {
#define to_qcom_reset_controller(r) \
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

0 comments on commit add479e

Please sign in to comment.