gpio: of: Fix logic inversion
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 16 Jan 2019 08:21:10 +0000 (09:21 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 24 Jan 2019 19:03:25 +0000 (19:03 +0000)
commitc1c04cea13dc234ce9a4504879ddd36ea524d880
tree3b44fd90e24e7964fe88cd032e12479c5a79ecbe
parent6046f5407ff031b7852ada18141238ce2fe70011
gpio: of: Fix logic inversion

The SPI chip selects were not properly inspected due to
a logic inversion. This made SPI GPIOs not work.

Cc: Jan Kotas <jank@cadence.com>
Reported-by: Jan Kotas <jank@cadence.com>
Tested-by: Jan Kotas <jank@cadence.com>
Fixes: f3186dd87669 ("spi: Optionally use GPIO descriptors for CS GPIOs")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/gpio/gpiolib-of.c