i2c: Use of_property_read_bool() for boolean properties
authorRob Herring <robh@kernel.org>
Fri, 10 Mar 2023 14:47:07 +0000 (08:47 -0600)
committerWolfram Sang <wsa@kernel.org>
Thu, 16 Mar 2023 19:20:00 +0000 (20:20 +0100)
commit89151f6b007915fca95c5225cd1c37a419ba8cb9
tree1d9b7fd12008315d7d6a65de592c4fa2c64986a6
parent819c73455458e8f19e3cae88e47c63d8fca01ae3
i2c: 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: Chris Packham <chris.packham@alliedtelesis.co.nz>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-mpc.c
drivers/i2c/busses/i2c-pxa.c
drivers/i2c/i2c-core-of.c