gpiolib: of: add a quirk for reset line for Cirrus CS42L56 codec
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 18 Oct 2022 05:41:07 +0000 (22:41 -0700)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 20 Oct 2022 11:54:07 +0000 (13:54 +0200)
commit944004eb56dc977ad5f882ca4338f45396052317
tree31c6b5b7ddae5dcbeabf0587bdd558fbcae84c23
parent9c2cc7171e08eef52110d272fdf2225d6dcd81b6
gpiolib: of: add a quirk for reset line for Cirrus CS42L56 codec

The controller is using non-standard "cirrus,gpio-nreset" name for its
reset gpio property, whereas gpiod API expects "<name>-gpios".
Add a quirk so that gpiod API will still work on unmodified DTSes.

Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpiolib-of.c