From: viresh.kumar@linaro.org (Viresh Kumar)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] CLK: SPEAr: make structure field and function argument as const
Date: Wed, 18 Oct 2017 09:18:16 +0530 [thread overview]
Message-ID: <20171018034816.GE27082@vireshk-i7> (raw)
In-Reply-To: <alpine.DEB.2.20.1710171641400.5035@hadrien>
On 17-10-17, 16:42, Julia Lawall wrote:
>
>
> On Tue, 17 Oct 2017, Bhumika Goyal wrote:
>
> > Make the masks field of clk_aux structure const as it do not modify the
> > fields of the aux_clk_masks structure it points to.
> >
> > Make the struct aux_clk_masks *aux argument of the function
> > clk_register_aux as const as the argument is only stored in the masks
> > field of a clk_aux structure which is now made const.
> >
> > Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
> > ---
> > drivers/clk/spear/clk-aux-synth.c | 2 +-
> > drivers/clk/spear/clk.h | 4 ++--
> > 2 files changed, 3 insertions(+), 3 deletions(-)
> >
> > diff --git a/drivers/clk/spear/clk-aux-synth.c b/drivers/clk/spear/clk-aux-synth.c
> > index f271c35..8bea5df 100644
> > --- a/drivers/clk/spear/clk-aux-synth.c
> > +++ b/drivers/clk/spear/clk-aux-synth.c
> > @@ -136,7 +136,7 @@ static int clk_aux_set_rate(struct clk_hw *hw, unsigned long drate,
> >
> > struct clk *clk_register_aux(const char *aux_name, const char *gate_name,
> > const char *parent_name, unsigned long flags, void __iomem *reg,
> > - struct aux_clk_masks *masks, struct aux_rate_tbl *rtbl,
> > + const struct aux_clk_masks *masks, struct aux_rate_tbl *rtbl,
> > u8 rtbl_cnt, spinlock_t *lock, struct clk **gate_clk)
> > {
> > struct clk_aux *aux;
> > diff --git a/drivers/clk/spear/clk.h b/drivers/clk/spear/clk.h
> > index 9834944..b9d28b3 100644
> > --- a/drivers/clk/spear/clk.h
> > +++ b/drivers/clk/spear/clk.h
> > @@ -49,7 +49,7 @@ struct aux_rate_tbl {
> > struct clk_aux {
> > struct clk_hw hw;
> > void __iomem *reg;
> > - struct aux_clk_masks *masks;
> > + const struct aux_clk_masks *masks;
>
> There are spaces before const here.
Fix that and add my:
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
--
viresh
next prev parent reply other threads:[~2017-10-18 3:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-17 14:38 [PATCH 0/2] CLK: SPEAr: make structure field, function arg and strutcure const Bhumika Goyal
2017-10-17 14:38 ` [PATCH 1/2] CLK: SPEAr: make structure field and function argument as const Bhumika Goyal
2017-10-17 14:42 ` Julia Lawall
2017-10-18 3:48 ` Viresh Kumar [this message]
2017-11-02 6:22 ` Stephen Boyd
2017-10-17 14:38 ` [PATCH 2/2] CLK: SPEAr: make aux_clk_masks structures const Bhumika Goyal
2017-10-18 3:47 ` Viresh Kumar
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=20171018034816.GE27082@vireshk-i7 \
--to=viresh.kumar@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
/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