]> git.dujemihanovic.xyz Git - linux.git/commit
power: supply: charger-manager: Use of_property_read_bool() for boolean properties
authorRob Herring <robh@kernel.org>
Fri, 10 Mar 2023 14:47:35 +0000 (08:47 -0600)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sun, 12 Mar 2023 22:33:43 +0000 (23:33 +0100)
commit83425c835e7dea49576aaac5fd4bff9b38ee0c32
treecd32aace115c4099b27d2db37315d58e9a8c13e4
parentef6d10568ca9ca622a867e5d059982251bbccd6b
power: supply: charger-manager: 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>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/charger-manager.c