Explorar el Código

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 hace 9 años
padre
commit
1a55cad19f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);
 	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,
 	.reset		= lpc18xx_rgu_reset,
 	.assert		= lpc18xx_rgu_assert,
 	.assert		= lpc18xx_rgu_assert,
 	.deassert	= lpc18xx_rgu_deassert,
 	.deassert	= lpc18xx_rgu_deassert,