From: Lee Jones <lee.jones@linaro.org>
To: Axel Lin <axel.lin@ingics.com>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>,
Bengt Jonsson <bengt.g.jonsson@stericsson.com>,
Yvan FILLION <yvan.fillion@stericsson.com>,
Liam Girdwood <lgirdwood@gmail.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] regulator: ab8500: Use regulator_list_voltage_linear for fixed voltage
Date: Mon, 25 Mar 2013 08:44:14 +0000 [thread overview]
Message-ID: <20130325084414.GA3568@gmail.com> (raw)
In-Reply-To: <1364194740.27158.1.camel@phoenix>
On Mon, 25 Mar 2013, Axel Lin wrote:
>
> Both ab8500_regulator_mode_ops and ab8500_regulator_ops do not have volt_table
> setting, thus we can not use regulator_list_voltage_table for them.
> However, they have min_uV setting with n_voltages = 1, so use
> regulator_list_voltage_linear instead.
>
> Also remove setting set_voltage_time_sel for ab8500_regulator_mode_ops.
> It is used only for fixed voltage, so it does not need to implement
> set_voltage_time_sel.
>
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
Looks good to me.
Acked-by: Lee Jones <lee.jones@linaro.org>
> ---
> drivers/regulator/ab8500.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/regulator/ab8500.c b/drivers/regulator/ab8500.c
> index a2d19c6..12e2740 100644
> --- a/drivers/regulator/ab8500.c
> +++ b/drivers/regulator/ab8500.c
> @@ -363,8 +363,7 @@ static struct regulator_ops ab8500_regulator_mode_ops = {
> .set_mode = ab8500_regulator_set_mode,
> .get_mode = ab8500_regulator_get_mode,
> .get_voltage_sel = ab8500_regulator_get_voltage_sel,
> - .list_voltage = regulator_list_voltage_table,
> - .set_voltage_time_sel = ab8500_regulator_set_voltage_time_sel,
> + .list_voltage = regulator_list_voltage_linear,
> };
>
> static struct regulator_ops ab8500_regulator_ops = {
> @@ -372,7 +371,7 @@ static struct regulator_ops ab8500_regulator_ops = {
> .disable = ab8500_regulator_disable,
> .is_enabled = ab8500_regulator_is_enabled,
> .get_voltage_sel = ab8500_regulator_get_voltage_sel,
> - .list_voltage = regulator_list_voltage_table,
> + .list_voltage = regulator_list_voltage_linear,
> };
>
> static struct ab8500_regulator_info
--
Lee Jones
Linaro ST-Ericsson Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
next prev parent reply other threads:[~2013-03-25 8:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-25 6:53 [PATCH 1/2] regulator: ab8500: Fix build error Axel Lin
2013-03-25 6:59 ` [PATCH 2/2] regulator: ab8500: Use regulator_list_voltage_linear for fixed voltage Axel Lin
2013-03-25 8:44 ` Lee Jones [this message]
2013-03-25 10:20 ` [PATCH 1/2] regulator: ab8500: Fix build error 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=20130325084414.GA3568@gmail.com \
--to=lee.jones@linaro.org \
--cc=axel.lin@ingics.com \
--cc=bengt.g.jonsson@stericsson.com \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=yvan.fillion@stericsson.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