diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2017-12-27 18:37:44 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-01-12 12:04:57 +0300 |
commit | 6a537d48461deacc57c07ed86d9915e5aa4b3539 (patch) | |
tree | 9378149bbe38af7e19c618afad0e2015ea0f90d1 /drivers/gpio/gpio-zynq.c | |
parent | 76e28f5ffed82b1e81a86c4eb8d0420515765620 (diff) | |
download | linux-6a537d48461deacc57c07ed86d9915e5aa4b3539.tar.xz |
gpio: of: Support regulator nonstandard GPIO properties
Before it was clearly established that all GPIO properties in the
device tree shall be named "foo-gpios" (with the deprecated variant
"foo-gpio" for single lines) we unfortunately merged a few bindings
for regulators with random phandle names.
As we want to switch the GPIO regulator driver to using descriptors,
we need devm_gpiod_get() to return something reasonable when looking
up these in the device tree.
Put in a special #ifdef:ed kludge to do this special lookup only
for the regulator case and gets compiled out if we're not enabling
regulators. Supply a whitelist with properties we accept.
Cc: Rob Herring <robh@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-zynq.c')
0 files changed, 0 insertions, 0 deletions