|
@@ -20,7 +20,7 @@ Signed-off-by: Mark Brown <[email protected]>
|
|
|
|
|
|
--- a/drivers/regulator/core.c
|
|
--- a/drivers/regulator/core.c
|
|
+++ b/drivers/regulator/core.c
|
|
+++ b/drivers/regulator/core.c
|
|
-@@ -2987,7 +2987,8 @@ static int _regulator_list_voltage(struc
|
|
|
|
|
|
+@@ -2992,7 +2992,8 @@ static int _regulator_list_voltage(struc
|
|
return rdev->desc->fixed_uV;
|
|
return rdev->desc->fixed_uV;
|
|
|
|
|
|
if (ops->list_voltage) {
|
|
if (ops->list_voltage) {
|
|
@@ -30,7 +30,7 @@ Signed-off-by: Mark Brown <[email protected]>
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
if (lock)
|
|
if (lock)
|
|
regulator_lock(rdev);
|
|
regulator_lock(rdev);
|
|
-@@ -3138,7 +3139,8 @@ int regulator_list_hardware_vsel(struct
|
|
|
|
|
|
+@@ -3143,7 +3144,8 @@ int regulator_list_hardware_vsel(struct
|
|
struct regulator_dev *rdev = regulator->rdev;
|
|
struct regulator_dev *rdev = regulator->rdev;
|
|
const struct regulator_ops *ops = rdev->desc->ops;
|
|
const struct regulator_ops *ops = rdev->desc->ops;
|
|
|
|
|
|
@@ -40,7 +40,7 @@ Signed-off-by: Mark Brown <[email protected]>
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
if (ops->set_voltage_sel != regulator_set_voltage_sel_regmap)
|
|
if (ops->set_voltage_sel != regulator_set_voltage_sel_regmap)
|
|
return -EOPNOTSUPP;
|
|
return -EOPNOTSUPP;
|
|
-@@ -4061,6 +4063,9 @@ int regulator_set_voltage_time(struct re
|
|
|
|
|
|
+@@ -4066,6 +4068,9 @@ int regulator_set_voltage_time(struct re
|
|
|
|
|
|
for (i = 0; i < rdev->desc->n_voltages; i++) {
|
|
for (i = 0; i < rdev->desc->n_voltages; i++) {
|
|
/* We only look for exact voltage matches here */
|
|
/* We only look for exact voltage matches here */
|