regulator: tps65090: Pass descriptor instead of GPIO number
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 14 May 2018 08:06:33 +0000 (10:06 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 24 May 2018 15:50:49 +0000 (16:50 +0100)
commit3012e81446d011c1bd99812e562e2292f21060fb
tree84aa70a9b08ffbd38c0fae1e1d706eefd0348cb0
parent9ae5cc75ceaacf69cc50b9fd4713276c2aa62eb9
regulator: tps65090: Pass descriptor instead of GPIO number

Instead of passing a global GPIO number for the enable GPIO, pass
a descriptor looked up from the device tree node for the
regulator.

This regulator supports passing platform data, but enable/sleep
regulators are looked up from the device tree exclusively, so
we can need not touch other files.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/tps65090-regulator.c
include/linux/mfd/tps65090.h