Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1422776

Re: [PATCH RFT] regulator: qcom_smd: Remove list_voltage callback for rpm_smps_ldo_ops_fixed

From Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH RFT] regulator: qcom_smd: Remove list_voltage callback for rpm_smps_ldo_ops_fixed
Date 2016-06-15 10:30 +0200
Message-ID <rKen0-6S-33@gated-at.bofh.it> (permalink)
References <rK8KH-4TL-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Mark,

On 15/06/16 03:21, Axel Lin wrote:
> Use regulator_list_voltage_linear_range in rpm_smps_ldo_ops_fixed is
> wrong because it is used for fixed regulator without any linear range.
> The rpm_smps_ldo_ops_fixed is used for pm8941_lnldo which has fixed_uV
> set and n_voltages = 1. In this case, regulator_list_voltage() can return
> rdev->desc->fixed_uV without .list_voltage implementation.
>
> Fixes: 3bfbb4d1a480 ("regulator: qcom_smd: add list_voltage callback")

TBH, 3bfbb4d1a480 patch was never in the mailing list, am sure there is 
some confusion while applying other patches.

May be a8a47540ebe3 got re-applied, without any errors/warning I guess.

These are the only 2 patches which were submitted in mailing list and 
which made into next.

https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/?id=a8a47540ebe32f1733eebc3e5699af580ceaa3f5

https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/?id=d1e44b6b2823f1751ffe7e7589f545f05cfe2095


Thanks,
srini

> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> ---
>   drivers/regulator/qcom_smd-regulator.c | 1 -
>   1 file changed, 1 deletion(-)
>
> diff --git a/drivers/regulator/qcom_smd-regulator.c b/drivers/regulator/qcom_smd-regulator.c
> index 526bf23..6c7fe477 100644
> --- a/drivers/regulator/qcom_smd-regulator.c
> +++ b/drivers/regulator/qcom_smd-regulator.c
> @@ -152,7 +152,6 @@ static const struct regulator_ops rpm_smps_ldo_ops_fixed = {
>   	.enable = rpm_reg_enable,
>   	.disable = rpm_reg_disable,
>   	.is_enabled = rpm_reg_is_enabled,
> -	.list_voltage = regulator_list_voltage_linear_range,
>
>   	.get_voltage = rpm_reg_get_voltage,
>   	.set_voltage = rpm_reg_set_voltage,
>

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH RFT] regulator: qcom_smd: Remove list_voltage callback for  rpm_smps_ldo_ops_fixed Axel Lin <axel.lin@ingics.com> - 2016-06-15 04:30 +0200
  Re: [PATCH RFT] regulator: qcom_smd: Remove list_voltage callback for  rpm_smps_ldo_ops_fixed Srinivas Kandagatla <srinivas.kandagatla@linaro.org> - 2016-06-15 10:30 +0200
  Applied "regulator: qcom_smd: Remove list_voltage callback for rpm_smps_ldo_ops_fixed" to the regulator tree Mark Brown <broonie@kernel.org> - 2016-06-15 11:40 +0200

csiph-web