OSDN Git Service

regulator: virtual: add devicetree support
authorVincent Whitchurch <vincent.whitchurch@axis.com>
Tue, 1 Mar 2022 11:18:31 +0000 (12:18 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 2 Mar 2022 13:45:31 +0000 (13:45 +0000)
commit80c056656d46ffbece6125dee3f25adbc36d1486
tree6fa2fe92d188920a130c3f87effb4bf0269ef3b2
parentd2fb5487ecb2a28b61ff261ae18488afc98d24a6
regulator: virtual: add devicetree support

The reg-virt-consumer is very useful for development and testing of
regulator drivers since it allows voltages and modes to be set from
userspace.  However, it currently requires platform data so it cannot be
used without patching the kernel.  Add support for probing it from the
devicetree to remedy this.

Since this driver is only meant for testing and is a purely software
construct, no binding documentation is added.

Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
Link: https://lore.kernel.org/r/20220301111831.3742383-4-vincent.whitchurch@axis.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/virtual.c