regulator: pbias: Fix broken pbias disable functionality
authorKishon Vijay Abraham I <kishon@ti.com>
Mon, 27 Jul 2015 11:24:10 +0000 (16:54 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Sep 2015 17:05:43 +0000 (10:05 -0700)
commit0fd96604b85be283a3bef4939fdd70d30a232bbc
tree55709dc542abe61c8fef8516647c201883c1a925
parent1042a41280224603cc6e6c282d4811bcfd79a251
regulator: pbias: Fix broken pbias disable functionality

commit c329061be51bef655f28c9296093984c977aff85 upstream.

regulator_disable of pbias always writes '0' to the enable_reg.
However actual disable value of pbias regulator is not always '0'.
Fix it by populating the disable_val in pbias_reg_info for the
various platforms and assign it to the disable_val of
pbias regulator descriptor. This will be used by
regulator_disable_regmap while disabling pbias regulator.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/regulator/pbias-regulator.c