Re: [PATCH 1/2] MIPS: lantiq: Make reset_control_ops const

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 25/02/2016 10:45, Philipp Zabel wrote:
> The reset_ops structure is never modified. Make it const.
> 
> Signed-off-by: Philipp Zabel <p.zabel@xxxxxxxxxxxxxx>

Acked-by: John Crispin <blogic@xxxxxxxxxxx>

> ---
>  arch/mips/lantiq/xway/reset.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/mips/lantiq/xway/reset.c b/arch/mips/lantiq/xway/reset.c
> index bc29bb3..1f34608 100644
> --- a/arch/mips/lantiq/xway/reset.c
> +++ b/arch/mips/lantiq/xway/reset.c
> @@ -258,7 +258,7 @@ static int ltq_reset_device(struct reset_controller_dev *rcdev,
>  	return ltq_deassert_device(rcdev, id);
>  }
>  
> -static struct reset_control_ops reset_ops = {
> +static const struct reset_control_ops reset_ops = {
>  	.reset = ltq_reset_device,
>  	.assert = ltq_assert_device,
>  	.deassert = ltq_deassert_device,
> 




[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux