power: supply: core: Use device_property_string_array_count()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 2 Feb 2022 18:23:25 +0000 (20:23 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 11 Feb 2022 18:54:21 +0000 (19:54 +0100)
commit1c97db1747b756611f0d26ea7fb2ed2d93f90fcc
tree6728be18a4b5bfd1210a9a9a81288866597a80af
parente83c7204f185c598b5b933ea5511b062b26afb67
power: supply: core: Use device_property_string_array_count()

Use device_property_string_array_count() to get number of strings
in a string array property.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/power_supply_core.c