]> git.karo-electronics.de Git - linux-beck.git/commitdiff
reset: Make reset_control_ops const
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 14 Jan 2016 15:24:45 +0000 (16:24 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 25 Jan 2016 09:58:44 +0000 (10:58 +0100)
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>
include/linux/reset-controller.h

index ce6b962ffed43d892aa1bea3749e923f0032ea1f..a3a5bcdb1d02e6c3ffb8868f5ebb49c6f14ae636 100644 (file)
@@ -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;