002-make-reset-control-ops-const.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. From add479eeb1a208a31ab913ae7c97506a81383079 Mon Sep 17 00:00:00 2001
  2. From: Philipp Zabel <p.zabel@pengutronix.de>
  3. Date: Thu, 25 Feb 2016 10:45:12 +0100
  4. Subject: clk: qcom: Make reset_control_ops const
  5. The qcom_reset_ops structure is never modified. Make it const.
  6. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
  7. Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
  8. ---
  9. drivers/clk/qcom/reset.c | 2 +-
  10. drivers/clk/qcom/reset.h | 2 +-
  11. 2 files changed, 2 insertions(+), 2 deletions(-)
  12. --- a/drivers/clk/qcom/reset.c
  13. +++ b/drivers/clk/qcom/reset.c
  14. @@ -55,7 +55,7 @@ qcom_reset_deassert(struct reset_control
  15. return regmap_update_bits(rst->regmap, map->reg, mask, 0);
  16. }
  17. -struct reset_control_ops qcom_reset_ops = {
  18. +const struct reset_control_ops qcom_reset_ops = {
  19. .reset = qcom_reset,
  20. .assert = qcom_reset_assert,
  21. .deassert = qcom_reset_deassert,
  22. --- a/drivers/clk/qcom/reset.h
  23. +++ b/drivers/clk/qcom/reset.h
  24. @@ -32,6 +32,6 @@ struct qcom_reset_controller {
  25. #define to_qcom_reset_controller(r) \
  26. container_of(r, struct qcom_reset_controller, rcdev);
  27. -extern struct reset_control_ops qcom_reset_ops;
  28. +extern const struct reset_control_ops qcom_reset_ops;
  29. #endif