浏览代码

reset: lpc18xx: Make reset_control_ops const

The lpc18xx_rgu_ops structure is never modified. Make it const.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: Joachim Eastwood <manabian@gmail.com>
Philipp Zabel 9 年之前
父节点
当前提交
1a55cad19f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/reset/reset-lpc18xx.c

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

@@ -136,7 +136,7 @@ static int lpc18xx_rgu_status(struct reset_controller_dev *rcdev,
 	return !(readl(rc->base + offset) & bit);
 }
 
-static struct reset_control_ops lpc18xx_rgu_ops = {
+static const struct reset_control_ops lpc18xx_rgu_ops = {
 	.reset		= lpc18xx_rgu_reset,
 	.assert		= lpc18xx_rgu_assert,
 	.deassert	= lpc18xx_rgu_deassert,