summaryrefslogtreecommitdiff
path: root/include/linux/reset-controller.h
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@free-electrons.com>2016-01-14 18:24:45 +0300
committerPhilipp Zabel <p.zabel@pengutronix.de>2016-01-25 12:58:44 +0300
commit203d4f347d86aa9e78342457aa7a3844c4fadd1d (patch)
treecb7bd67068d221c26d5192ebac0f3e0466f74449 /include/linux/reset-controller.h
parentd056c9b81918675c6dedbfae042c2329effad786 (diff)
downloadlinux-203d4f347d86aa9e78342457aa7a3844c4fadd1d.tar.xz
reset: Make reset_control_ops const
The ops pointer is holding a pointer to a structure that is usually not modified. Make it const. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'include/linux/reset-controller.h')
-rw-r--r--include/linux/reset-controller.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/reset-controller.h b/include/linux/reset-controller.h
index ce6b962ffed4..a3a5bcdb1d02 100644
--- a/include/linux/reset-controller.h
+++ b/include/linux/reset-controller.h
@@ -38,7 +38,7 @@ struct of_phandle_args;
* @nr_resets: number of reset controls in this reset controller device
*/
struct reset_controller_dev {
- struct reset_control_ops *ops;
+ const struct reset_control_ops *ops;
struct module *owner;
struct list_head list;
struct device_node *of_node;