Add get_voltage ops for dcdc5 and dcdc6. Both dcdc5 and 6 are fixed regulators
and hence return min_uV (or max_uV).
Signed-off-by: Keerthy j-keer...@ti.com
---
drivers/regulator/tps65218-regulator.c |9 +
1 file changed, 9 insertions(+)
diff --git
On Tue, Jul 08, 2014 at 03:46:36PM +0530, Keerthy wrote:
Add get_voltage ops for dcdc5 and dcdc6. Both dcdc5 and 6 are fixed regulators
and hence return min_uV (or max_uV).
Signed-off-by: Keerthy j-keer...@ti.com
Reviewed-by: Felipe Balbi ba...@ti.com
---
On Tue, Jul 08, 2014 at 03:46:36PM +0530, Keerthy wrote:
+static int tps65218_pmic_dcdc56_get_voltage(struct regulator_dev *dev)
+{
+ struct tps65218 *tps = rdev_get_drvdata(dev);
+ unsigned int rid = rdev_get_id(dev);
+
+ return tps-info[rid]-min_uV;
+}
Set fixed_uV in the
On Tuesday 08 July 2014 07:41 PM, Mark Brown wrote:
On Tue, Jul 08, 2014 at 03:46:36PM +0530, Keerthy wrote:
+static int tps65218_pmic_dcdc56_get_voltage(struct regulator_dev *dev)
+{
+ struct tps65218 *tps = rdev_get_drvdata(dev);
+ unsigned int rid = rdev_get_id(dev);
+
+