gpiolib: of: factor out quirk setting polarity via separate property
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 30 Oct 2022 04:40:46 +0000 (21:40 -0700)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Fri, 4 Nov 2022 15:14:58 +0000 (16:14 +0100)
commit34cb9352b62366038fd2d5b9d9f393f35d0be1e0
treef78c8ea09e6bba62b53d134a17349c5c998bf2fd
parentd59fdbc7164a6b2a0ed45c13387deac8efeed5a2
gpiolib: of: factor out quirk setting polarity via separate property

Several legacy bindings use a separate property to specify polarity of
GPIOs instead of specifying it directly in the GPIO property. Factor
out this code to make it easier to add more such cases.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpiolib-of.c