浏览代码

reset: ath79: Make reset_control_ops const

The ath79_reset_ops structure is never modified. Make it const.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: Alban Bedel <albeu@free.fr>
Philipp Zabel 9 年之前
父节点
当前提交
d2f79f223f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/reset/reset-ath79.c

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

@@ -70,7 +70,7 @@ static int ath79_reset_status(struct reset_controller_dev *rcdev,
 	return !!(val & BIT(id));
 }
 
-static struct reset_control_ops ath79_reset_ops = {
+static const struct reset_control_ops ath79_reset_ops = {
 	.assert = ath79_reset_assert,
 	.deassert = ath79_reset_deassert,
 	.status = ath79_reset_status,