gpiolib: of: make Freescale SPI quirk similar to all others
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 8 Sep 2022 05:39:47 +0000 (22:39 -0700)
committerBartosz Golaszewski <brgl@bgdev.pl>
Thu, 15 Sep 2022 08:36:08 +0000 (10:36 +0200)
commit984914ec4f4bfa9ee8f067b06293bc12bef20137
treeb714ab468e114a59909b67190b088ce3d9a9798e
parent98c3c940ea5c3957056717e8b77a91c7d94536ad
gpiolib: of: make Freescale SPI quirk similar to all others

There is no need for of_find_spi_cs_gpio() to be different from other
quirks: the only variant of property actually used in DTS is "gpios"
(plural) so we can use of_get_named_gpiod_flags() instead of recursing
into of_find_gpio() again.

This will allow us consolidate quirk handling down the road.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/gpiolib-of.c