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 18:11:30 +0200 |
commit | a13eaf02e2d6326a59f142db329faf4efb527e79 (patch) | |
tree | adcbcdbe370fd416c04519a2c5e0055cc4fb35c8 /arch/x86/kernel/process_64.c | |
parent | regulator: rk808: add #include for gpiod functions (diff) | |
download | linux-a13eaf02e2d6326a59f142db329faf4efb527e79.tar.xz 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 'arch/x86/kernel/process_64.c')
0 files changed, 0 insertions, 0 deletions