This patch converts a fixed voltage pm8941 lnldo to a single step linear range regulator, so that we could use the same list_volatage callback without BUG_ON from regulator core. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@xxxxxxxxxx> --- drivers/regulator/qcom_smd-regulator.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/regulator/qcom_smd-regulator.c b/drivers/regulator/qcom_smd-regulator.c index b11b627..09c688d 100644 --- a/drivers/regulator/qcom_smd-regulator.c +++ b/drivers/regulator/qcom_smd-regulator.c @@ -246,7 +246,10 @@ static const struct regulator_desc pm8941_nldo = { }; static const struct regulator_desc pm8941_lnldo = { - .fixed_uV = 1740000, + .linear_ranges = (struct regulator_linear_range[]) { + REGULATOR_LINEAR_RANGE(1740000, 0, 0, 1740000), + }, + .n_linear_ranges = 1, .n_voltages = 1, .ops = &rpm_smps_ldo_ops, }; -- 2.8.2 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html