gpiolib: of: factor out conversion from OF flags
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 8 Sep 2022 05:39:49 +0000 (22:39 -0700)
committerBartosz Golaszewski <brgl@bgdev.pl>
Thu, 15 Sep 2022 08:36:39 +0000 (10:36 +0200)
commitd9e7f0e320516c660d6f33e6c16a3d99970eb14e
tree29829b80d495e3b63d613b9b188879758d8d4838
parenta2b5e207cade33b4d2dfd920f783f13b1f173e78
gpiolib: of: factor out conversion from OF flags

There are several places where we need to convert from OF flags to
"normal" GPIO_* flags, so let's introduce a helper and use it.

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