regulator: core: Fix voltage change propagations to supply regulators
authorTirupathi Reddy <tirupath@codeaurora.org>
Thu, 25 May 2017 10:03:17 +0000 (15:33 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 28 Jun 2017 19:39:36 +0000 (20:39 +0100)
commit2c2874b191d54fbf9216524e629558eee89e1d20
tree2230fb67ff104b417d50cb3ff0099f2f89f6e90f
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6
regulator: core: Fix voltage change propagations to supply regulators

Some regulators support get_voltage() and some support get_voltage_sel()
operations but currently we only propagate changes if the regulator has
a get_voltage() operation.  Also do this if we've got get_voltage_sel()

[Rewite commit message for clarity -- broonie]

Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c