From: Marek Vasut <marek.vasut@gmail.com>
To: Axel Lin <axel.lin@ingics.com>, Mark Brown <broonie@kernel.org>
Cc: Marek Vasut <marek.vasut+renesas@gmail.com>,
Liam Girdwood <lgirdwood@gmail.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] regulator: bd9571mwv: Statize local symbols
Date: Sun, 28 May 2017 14:20:25 +0200 [thread overview]
Message-ID: <26c45bf7-7c83-1e2a-220f-8d2dcf1318fa@gmail.com> (raw)
In-Reply-To: <20170528060217.21485-1-axel.lin@ingics.com>
On 05/28/2017 08:02 AM, Axel Lin wrote:
> These functions are only used by this driver, make them static.
>
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
Obviously correct,
Acked-by: Marek Vasut <marek.vasut@gmail.com>
> ---
> drivers/regulator/bd9571mwv-regulator.c | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/regulator/bd9571mwv-regulator.c b/drivers/regulator/bd9571mwv-regulator.c
> index 8ba206f..c67a83d 100644
> --- a/drivers/regulator/bd9571mwv-regulator.c
> +++ b/drivers/regulator/bd9571mwv-regulator.c
> @@ -43,7 +43,7 @@ enum bd9571mwv_regulators { VD09, VD18, VD25, VD33, DVFS };
> .linear_min_sel = _lmin, \
> }
>
> -int bd9571mwv_avs_get_moni_state(struct regulator_dev *rdev)
> +static int bd9571mwv_avs_get_moni_state(struct regulator_dev *rdev)
> {
> unsigned int val;
> int ret;
> @@ -55,8 +55,8 @@ int bd9571mwv_avs_get_moni_state(struct regulator_dev *rdev)
> return val & BD9571MWV_AVS_SET_MONI_MASK;
> }
>
> -int bd9571mwv_avs_set_voltage_sel_regmap(struct regulator_dev *rdev,
> - unsigned int sel)
> +static int bd9571mwv_avs_set_voltage_sel_regmap(struct regulator_dev *rdev,
> + unsigned int sel)
> {
> int ret;
>
> @@ -68,7 +68,7 @@ int bd9571mwv_avs_set_voltage_sel_regmap(struct regulator_dev *rdev,
> rdev->desc->vsel_mask, sel);
> }
>
> -int bd9571mwv_avs_get_voltage_sel_regmap(struct regulator_dev *rdev)
> +static int bd9571mwv_avs_get_voltage_sel_regmap(struct regulator_dev *rdev)
> {
> unsigned int val;
> int ret;
> @@ -87,8 +87,8 @@ int bd9571mwv_avs_get_voltage_sel_regmap(struct regulator_dev *rdev)
> return val;
> }
>
> -int bd9571mwv_reg_set_voltage_sel_regmap(struct regulator_dev *rdev,
> - unsigned int sel)
> +static int bd9571mwv_reg_set_voltage_sel_regmap(struct regulator_dev *rdev,
> + unsigned int sel)
> {
> return regmap_write_bits(rdev->regmap, BD9571MWV_DVFS_SETVID,
> rdev->desc->vsel_mask, sel);
>
--
Best regards,
Marek Vasut
next prev parent reply other threads:[~2017-05-28 12:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-28 6:02 Axel Lin
2017-05-28 12:20 ` Marek Vasut [this message]
2017-06-06 19:07 ` Applied "regulator: bd9571mwv: Statize local symbols" to the regulator tree Mark Brown
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=26c45bf7-7c83-1e2a-220f-8d2dcf1318fa@gmail.com \
--to=marek.vasut@gmail.com \
--cc=axel.lin@ingics.com \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=marek.vasut+renesas@gmail.com \
/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
Powered by JetHome