From: James Hartley <james.hartley@imgtec.com>
To: Philipp Zabel <p.zabel@pengutronix.de>
Cc: <linux-kernel@vger.kernel.org>,
Damien Horsley <Damien.Horsley@imgtec.com>
Subject: Re: [PATCH] reset: img: Make reset_control_ops const
Date: Mon, 8 Feb 2016 15:20:00 +0000 [thread overview]
Message-ID: <56B8B220.9060401@imgtec.com> (raw)
In-Reply-To: <1454938123-9704-1-git-send-email-p.zabel@pengutronix.de>
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>
prev parent reply other threads:[~2016-02-08 15:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-08 13:28 [PATCH] reset: img: Make reset_control_ops const Philipp Zabel
2016-02-08 15:20 ` James Hartley [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56B8B220.9060401@imgtec.com \
--to=james.hartley@imgtec.com \
--cc=Damien.Horsley@imgtec.com \
--cc=linux-kernel@vger.kernel.org \
--cc=p.zabel@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox