OSDN Git Service

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)
commitd7a261c2d1f233260c48651b4e68987ce1206139
tree5d5cd25af4d10d2d180c7736dd507e03108438d9
parent2468f0d51548b23507ceb3bba5f4e3acaea117ba
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