hwmon: (ltc4245) Use of_property_read_bool() for boolean properties
authorRob Herring <robh@kernel.org>
Fri, 10 Mar 2023 14:47:07 +0000 (08:47 -0600)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 19 Apr 2023 14:08:31 +0000 (07:08 -0700)
commit50c3480b6db859ce2c5f524eedb74973342455d0
tree362c9efe14a2fcff8ddc253e49c67b03b7fe231d
parent08d40c1d57b7127cfdebbc0648b57d54e38f2ba7
hwmon: (ltc4245) 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 of_property_read_bool().

Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20230310144707.1542525-1-robh@kernel.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ltc4245.c