mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 23:58:05 +00:00
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: f3186dd876
("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>
This commit is contained in:
parent
6046f5407f
commit
c1c04cea13
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ static void of_gpio_flags_quirks(struct device_node *np,
|
|||
|
||||
for_each_child_of_node(np, child) {
|
||||
ret = of_property_read_u32(child, "reg", &cs);
|
||||
if (!ret)
|
||||
if (ret)
|
||||
continue;
|
||||
if (cs == index) {
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue