gpio: of: Handle fixed regulator flags properly
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 11 Jun 2018 13:11:41 +0000 (15:11 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 23 Jul 2018 21:13:31 +0000 (23:13 +0200)
commit906402a44b5d090e9c330c562b8aa65c80790ccc
tree9a5b815b2c4a6a9db98078946e82683958cbed9d
parentd72e90f33aa4709ebecc5005562f52335e106a60
gpio: of: Handle fixed regulator flags properly

This fixes up the handling of fixed regulator polarity
inversion flags: while I remembered to fix it for the
undocumented "reg-fixed-voltage" I forgot about the
official "regulator-fixed" binding, there are two ways
to do a fixed regulator.

The error was noticed and fixed.

Fixes: a603a2b8d86e ("gpio: of: Add special quirk to parse regulator flags")
Cc: Mark Brown <broonie@kernel.org>
Cc: Thierry Reding <thierry.reding@gmail.com>
Reported-by: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-of.c