]> asedeno.scripts.mit.edu Git - linux.git/commit
regulator: s5m8767: Pass descriptor instead of GPIO number
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 14 May 2018 08:06:32 +0000 (10:06 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 24 May 2018 15:50:42 +0000 (16:50 +0100)
commit9ae5cc75ceaacf69cc50b9fd4713276c2aa62eb9
tree89f1a8fd9fd5e22c1f222f72a9ede2f1adfcfb6b
parent5389ac0ac7d95cf23a5f4e27430ceb2ed815cd5d
regulator: s5m8767: 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/s5m8767.c
include/linux/mfd/samsung/core.h