gpio: Use of_property_read_bool() for boolean properties
authorRob Herring <robh@kernel.org>
Tue, 14 Mar 2023 15:41:17 +0000 (10:41 -0500)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 15 Mar 2023 09:43:08 +0000 (10:43 +0100)
commit5b0ad5b24327d44b8307e822d160a3d48a70e87c
tree3044c973e9bfc56f36984792d98999ca6e33c306
parent0c5ebb4c03308c0a544b5c1e0a33f0a63c40bc7e
gpio: Use of_property_read_bool() for boolean properties

It is preferred to use typed property access functions (i.e.
of_property_read_<type> functions) rather than low-level
of_get_property/of_find_property functions for reading properties.
Convert reading boolean properties to to of_property_read_bool().

Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-stp-xway.c
drivers/gpio/gpio-tb10x.c