diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2015-07-21 16:46:25 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-07-21 17:11:30 +0100 |
commit | a13eaf02e2d6326a59f142db329faf4efb527e79 (patch) | |
tree | adcbcdbe370fd416c04519a2c5e0055cc4fb35c8 /drivers/regulator/Kconfig | |
parent | 604d4994277f3526c8ec7ba16f32e236d5ca3e78 (diff) | |
download | talos-op-linux-a13eaf02e2d6326a59f142db329faf4efb527e79.tar.gz talos-op-linux-a13eaf02e2d6326a59f142db329faf4efb527e79.zip |
regulator: rk808: make better use of the gpiod API
The gpiod functions include variants for managed gpiod resources. Use it
to simplify the remove function.
As the driver handles a device node without a specification of dvs gpios
just fine, additionally use the variant of gpiod_get exactly for this
use case. This makes error checking more strict.
As a third benefit this patch makes the driver use the flags parameter
of gpiod_get* which will not be optional any more after 4.2 and so
prevents a build failure when the respective gpiod commit is merged.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/Kconfig')
0 files changed, 0 insertions, 0 deletions