public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] reset: img: Make reset_control_ops const
@ 2016-02-08 13:28 Philipp Zabel
  2016-02-08 15:20 ` James Hartley
  0 siblings, 1 reply; 2+ messages in thread
From: Philipp Zabel @ 2016-02-08 13:28 UTC (permalink / raw)
  To: linux-kernel; +Cc: James Hartley, Damien Horsley, Philipp Zabel

The pistachio_reset_ops structure is never modified. Make it const.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
 drivers/reset/reset-pistachio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/reset/reset-pistachio.c b/drivers/reset/reset-pistachio.c
index b31cdb0..72a97a1 100644
--- a/drivers/reset/reset-pistachio.c
+++ b/drivers/reset/reset-pistachio.c
@@ -97,7 +97,7 @@ static int pistachio_reset_deassert(struct reset_controller_dev *rcdev,
 				  mask, 0);
 }
 
-static struct reset_control_ops pistachio_reset_ops = {
+static const struct reset_control_ops pistachio_reset_ops = {
 	.assert		= pistachio_reset_assert,
 	.deassert	= pistachio_reset_deassert,
 };
-- 
2.7.0.rc3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] reset: img: Make reset_control_ops const
  2016-02-08 13:28 [PATCH] reset: img: Make reset_control_ops const Philipp Zabel
@ 2016-02-08 15:20 ` James Hartley
  0 siblings, 0 replies; 2+ messages in thread
From: James Hartley @ 2016-02-08 15:20 UTC (permalink / raw)
  To: Philipp Zabel; +Cc: linux-kernel, Damien Horsley

On 02/08/16 13:28, Philipp Zabel wrote:
> The pistachio_reset_ops structure is never modified. Make it const.
>
> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
> ---
>   drivers/reset/reset-pistachio.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/reset/reset-pistachio.c b/drivers/reset/reset-pistachio.c
> index b31cdb0..72a97a1 100644
> --- a/drivers/reset/reset-pistachio.c
> +++ b/drivers/reset/reset-pistachio.c
> @@ -97,7 +97,7 @@ static int pistachio_reset_deassert(struct reset_controller_dev *rcdev,
>   				  mask, 0);
>   }
>   
> -static struct reset_control_ops pistachio_reset_ops = {
> +static const struct reset_control_ops pistachio_reset_ops = {
>   	.assert		= pistachio_reset_assert,
>   	.deassert	= pistachio_reset_deassert,
>   };

Acked-by: James Hartley <james.hartley@imgtec.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-02-08 15:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-08 13:28 [PATCH] reset: img: Make reset_control_ops const Philipp Zabel
2016-02-08 15:20 ` James Hartley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox