]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
regulator: Remove regulator_can_change_voltage()
authorMark Brown <broonie@kernel.org>
Thu, 9 Jun 2016 09:49:02 +0000 (10:49 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 9 Jun 2016 10:40:34 +0000 (11:40 +0100)
commitfc1e1c4a249e8bf0aff68576fad776dd5adc0562
tree949d4b9136b85ee4e8c941f663ac7f4520996fc3
parent1a695a905c18548062509178b98bc91e67510864
regulator: Remove regulator_can_change_voltage()

There is little obvious use case for a regualtor driver to know if it is
possible to vary voltages at all by itself.  If a consumer needs to
limit what voltages it tries to set based on the system configuration
then it will need to enumerate the possible voltages, and without that
even if it is possible to change voltages that doesn't mean that
constraints or other consumers will allow whatever change the driver is
trying to do at a given time.  It doesn't even indicate if _set_voltage()
calls will work as noop _set_voltage() calls return success.

There were no users of this API that weren't abusing it and now they're
all gone so remove the API.

Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c
include/linux/regulator/consumer.h