power: supply: charger-manager: Count cm-chargers property directly
authorJonathan Bakker <xc-racer2@live.ca>
Thu, 14 May 2020 23:04:34 +0000 (16:04 -0700)
committerSebastian Reichel <sre@kernel.org>
Fri, 28 Aug 2020 17:27:45 +0000 (19:27 +0200)
commit683aa86eb16ab8cf91075654d08ef7409f160e35
tree23997ae6f8b51ac884640fd13387559ce5e17458
parentc1f73028f75df43689feda4bc70573b7d18a618e
power: supply: charger-manager: Count cm-chargers property directly

Rather than having a cm-chargers and a separate cm-num-chargers
property, simply count the entries in cm-chargers.

Signed-off-by: Jonathan Bakker <xc-racer2@live.ca>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/charger-manager.c