Re: [PATCH] reset: lpc18xx: Make reset_control_ops const
From: Joachim Eastwood
Date: Mon Feb 08 2016 - 11:16:23 EST
Hi Philipp,
On 8 February 2016 at 14:28, Philipp Zabel <p.zabel@xxxxxxxxxxxxxx> wrote:
> The lpc18xx_rgu_ops structure is never modified. Make it const.
>
> Signed-off-by: Philipp Zabel <p.zabel@xxxxxxxxxxxxxx>
> ---
> drivers/reset/reset-lpc18xx.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/reset/reset-lpc18xx.c b/drivers/reset/reset-lpc18xx.c
> index 70922e9..3b8a4f5 100644
> --- a/drivers/reset/reset-lpc18xx.c
> +++ b/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,
Acked-by: Joachim Eastwood <manabian@xxxxxxxxx>
regards,
Joachim Eastwood