浏览代码

reset: img: Make reset_control_ops const

The pistachio_reset_ops structure is never modified. Make it const.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: James Hartley <james.hartley@imgtec.com>
Philipp Zabel 9 年之前
父节点
当前提交
c0cc2609bc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/reset/reset-pistachio.c

+ 1 - 1
drivers/reset/reset-pistachio.c

@@ -97,7 +97,7 @@ static int pistachio_reset_deassert(struct reset_controller_dev *rcdev,
 				  mask, 0);
 				  mask, 0);
 }
 }
 
 
-static struct reset_control_ops pistachio_reset_ops = {
+static const struct reset_control_ops pistachio_reset_ops = {
 	.assert		= pistachio_reset_assert,
 	.assert		= pistachio_reset_assert,
 	.deassert	= pistachio_reset_deassert,
 	.deassert	= pistachio_reset_deassert,
 };
 };