]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:10:57 +0000 (10:10 -0700)
commitbebd1a8108375dd05c80a1044a631cb5dd3ba152
tree818ccdfd85491ffc10139e42e0c5fd202dd1250d
parent65f91945f0c2a198ef3c5b234dd819e096976a80
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