Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1330704 > unrolled thread

Re: [PATCH] reset: ath79: Make reset_control_ops const

Started byAlban <albeu@free.fr>
First post2016-02-09 23:50 +0100
Last post2016-02-09 23:50 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] reset: ath79: Make reset_control_ops const Alban <albeu@free.fr> - 2016-02-09 23:50 +0100

#1330704 — Re: [PATCH] reset: ath79: Make reset_control_ops const

FromAlban <albeu@free.fr>
Date2016-02-09 23:50 +0100
SubjectRe: [PATCH] reset: ath79: Make reset_control_ops const
Message-ID<r0pgC-21e-21@gated-at.bofh.it>
On Mon,  8 Feb 2016 14:28:17 +0100
Philipp Zabel <p.zabel@pengutronix.de> wrote:

> The ath79_reset_ops structure is never modified. Make it const.
> 
> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
> ---
>  drivers/reset/reset-ath79.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/reset/reset-ath79.c b/drivers/reset/reset-ath79.c
> index 692fc89..ccb940a 100644
> --- a/drivers/reset/reset-ath79.c
> +++ b/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,

Acked-by: Alban Bedel <albeu@free.fr>

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web