regulator: palmas: Fix SMPS enable/disable/is_enable for tps65917
authorNishanth Menon <nm@ti.com>
Mon, 30 Jun 2014 15:57:39 +0000 (10:57 -0500)
committerMark Brown <broonie@linaro.org>
Thu, 3 Jul 2014 14:25:56 +0000 (15:25 +0100)
commitb632815e9a8d2f8c0c0486b209cf90fa942c527b
tree5450bfa63c7b29346084c5db2bcb31a48adb65b4
parent429222d00531b348076862ea4fd8cd694bf064a9
regulator: palmas: Fix SMPS enable/disable/is_enable for tps65917

We use regmap regulator ops to enable/disable and check if regulator
is enabled for various SMPS. However, these depend on valid
enable_reg, enable_mask and enable_value in regulator descriptor.

So, similar to fix we did in commit 318dbb02b50c
("regulator: palmas: Fix SMPS enable/disable/is_enabled"), populate the
same for TPS65917 SMPS registration. LDO definitions are already in
place.

Fixes: d6f83370ed97 ("regulator: palmas: Add tps65917 PMIC support")
Signed-off-by: Nishanth Menon <nm@ti.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/palmas-regulator.c