gpiolib: Unify the checks on fwnode type
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 9 Mar 2021 09:37:32 +0000 (11:37 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Fri, 26 Mar 2021 13:56:18 +0000 (14:56 +0100)
commit944f4b0af9ca0d203ebc0d1426218af372d2d995
tree6e40790b4ff115e788a5a75115254fc452748fb0
parent67196fea0fcef92b25608882f62f3985bc59f1fe
gpiolib: Unify the checks on fwnode type

We have (historically) different approaches how we identify the type
of a given fwnode. Let's standardize them across the library code.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpiolib.c