]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: max8952: Pass descriptor instead of GPIO number
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 14 May 2018 08:06:29 +0000 (10:06 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 24 May 2018 15:50:36 +0000 (16:50 +0100)
commit31d7e7493a92cc5b6c3be8c2adb5e401f6346261
tree5d5cd25af4d10d2d180c7736dd507e03108438d9
parent12434e72949e57cc9103368a12653a79fd2d4679
regulator: max8952: Pass descriptor instead of GPIO number

Instead of passing a global GPIO number for the enable GPIO, pass
a descriptor looked up with the standard devm_gpiod_get_optional()
call.

All users of this regulator use device tree so the transition is
pretty smooth.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/max8952.c
include/linux/regulator/max8952.h