]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gpio: of: Handle fixed regulator flags properly
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 11 Jun 2018 13:11:41 +0000 (15:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Aug 2018 05:48:03 +0000 (07:48 +0200)
commit33d553b27bd57362af25d292bea4dffcf094685c
tree7cb17376b1f15e5f50ba11708ba748b08f0bcefa
parentf668f6ef2b51242c15b770f01ae2239ed8d8ee91
gpio: of: Handle fixed regulator flags properly

commit 906402a44b5d090e9c330c562b8aa65c80790ccc upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpio/gpiolib-of.c