Update patch adding more power supplies
Chargers and Batteries on the L5 are not recognized (because they do not use BAT0, AC, ..)
$ ls /sys/class/power_supply
bq25890-charger max170xx_battery tps6598x-source-psy-0-003f
This update considers $foo a battery if it's /sys/class/power_supply/$foo/type reads "Battery". And $foo is considered a charger if it exposes the file /sys/class/power_supply/$foo/online
Edited by Evangelos Ribeiro Tzaras