]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: of: Check propname before applying "cs-gpios" quirks
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Tue, 26 Mar 2019 06:32:08 +0000 (23:32 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 28 Mar 2019 16:06:58 +0000 (17:06 +0100)
commit0c7a2c6b93b2bacb5ba13443f4048dc50bba1d21
tree50832a9df8973a90546a4e52637732d732639f5f
parent5221484dfc0c2a5d49e016be07e390270c6409b0
gpio: of: Check propname before applying "cs-gpios" quirks

SPI GPIO device has more than just "cs-gpio" property in its node and
would request those GPIOs as a part of its initialization. To avoid
applying CS-specific quirk to all of them add a check to make sure
that propname is "cs-gpios".

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Cc: Chris Healy <cphealy@gmail.com>
Cc: linux-gpio@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-of.c