소스 검색

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>
Maxime Ripard 9 년 전
부모
커밋
203d4f347d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      include/linux/reset-controller.h

+ 1 - 1
include/linux/reset-controller.h

@@ -38,7 +38,7 @@ struct of_phandle_args;
  * @nr_resets: number of reset controls in this reset controller device
  * @nr_resets: number of reset controls in this reset controller device
  */
  */
 struct reset_controller_dev {
 struct reset_controller_dev {
-	struct reset_control_ops *ops;
+	const struct reset_control_ops *ops;
 	struct module *owner;
 	struct module *owner;
 	struct list_head list;
 	struct list_head list;
 	struct device_node *of_node;
 	struct device_node *of_node;