drivers: power: improve charge_table