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)
committerMark Brown <broonie@kernel.org>
Fri, 14 Aug 2015 18:01:58 +0000 (19:01 +0100)
commitc329061be51bef655f28c9296093984c977aff85
tree105e1c08eff33caa32596f4ef23c4d765dffcaeb
parentbc0195aad0daa2ad5b0d76cce22b167bc3435590
regulator: pbias: Fix broken pbias disable functionality

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>
Cc: <stable@vger.kernel.org>
drivers/regulator/pbias-regulator.c