diff options
author | Mark Brown <broonie@kernel.org> | 2016-03-30 12:04:30 -0700 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-03-30 12:09:41 -0700 |
commit | 6a0028b3dd67b86d7265ed873c8738743adec855 (patch) | |
tree | cf4e179105b1a4b63fc3768c2a978ba199b23dac /drivers/regulator/core.c | |
parent | f55532a0c0b8bb6148f4e07853b876ef73bc69ca (diff) |
regulator: Deprecate regulator_can_change_voltage()
All current users of regulator_can_change_voltage() are abusing it,
using it to wrap a call to regulator_set_voltage() on probe without any
alternative handling for fixed voltages. Drivers should only be using
regulator_set_voltage() if they need to vary voltages at runtime, fixed
voltages should normally be set via machine constraints, and calling
regulator_set_voltage() on a regulator which can't be varied will
succeed if the current voltage is within the range requested so users
shouldn't worry if they have permission to vary normally.
Deprecate the API to try to stop any new users appearing while we fix
the current callers.
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/core.c')
0 files changed, 0 insertions, 0 deletions