regulator: tps65912: Convert to get_voltage_sel
Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
0f80ea1499
commit
9db7f05624
@ -405,7 +405,7 @@ static int tps65912_list_voltage(struct regulator_dev *dev, unsigned selector)
|
||||
return voltage;
|
||||
}
|
||||
|
||||
static int tps65912_get_voltage(struct regulator_dev *dev)
|
||||
static int tps65912_get_voltage_sel(struct regulator_dev *dev)
|
||||
{
|
||||
struct tps65912_reg *pmic = rdev_get_drvdata(dev);
|
||||
struct tps65912 *mfd = pmic->mfd;
|
||||
@ -419,7 +419,7 @@ static int tps65912_get_voltage(struct regulator_dev *dev)
|
||||
vsel = tps65912_reg_read(mfd, reg);
|
||||
vsel &= 0x3F;
|
||||
|
||||
return tps65912_list_voltage(dev, vsel);
|
||||
return vsel;
|
||||
}
|
||||
|
||||
static int tps65912_set_voltage_sel(struct regulator_dev *dev,
|
||||
@ -444,7 +444,7 @@ static struct regulator_ops tps65912_ops_dcdc = {
|
||||
.disable = tps65912_reg_disable,
|
||||
.set_mode = tps65912_set_mode,
|
||||
.get_mode = tps65912_get_mode,
|
||||
.get_voltage = tps65912_get_voltage,
|
||||
.get_voltage_sel = tps65912_get_voltage_sel,
|
||||
.set_voltage_sel = tps65912_set_voltage_sel,
|
||||
.list_voltage = tps65912_list_voltage,
|
||||
};
|
||||
@ -454,7 +454,7 @@ static struct regulator_ops tps65912_ops_ldo = {
|
||||
.is_enabled = tps65912_reg_is_enabled,
|
||||
.enable = tps65912_reg_enable,
|
||||
.disable = tps65912_reg_disable,
|
||||
.get_voltage = tps65912_get_voltage,
|
||||
.get_voltage_sel = tps65912_get_voltage_sel,
|
||||
.set_voltage_sel = tps65912_set_voltage_sel,
|
||||
.list_voltage = tps65912_list_voltage,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user