]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: wm8994: Pass descriptor instead of GPIO number
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 15 Nov 2018 08:01:18 +0000 (09:01 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 15 Nov 2018 19:42:08 +0000 (11:42 -0800)
commit1b832252bd8fb338de0e2b43c92111fdeb837de4
tree417accb18dff5ce13dae132b97521325a0b7a263
parent4b40fa7e789dcabdb84aefc925f5ebc5353fdb7d
regulator: wm8994: 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 or the board file
decriptor table for the regulator.

There is a single board file passing the GPIOs for LDO1 and LDO2
through platform data, so augment this to pass descriptors
associated with the i2c device as well.

The special GPIO enable DT property for the enable GPIO is
nonstandard but this was accomodated in
commit ae8c61793c551b19e161636b897ec6cf40500e1c
"gpio: of: Support regulator nonstandard GPIO properties".

Cc: patches@opensource.cirrus.com
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
arch/arm/mach-s3c64xx/mach-crag6410-module.c
drivers/mfd/wm8994-core.c
drivers/regulator/wm8994-regulator.c
include/linux/mfd/wm8994/pdata.h