p1-common: charger: reduce differences between original code

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: Ib970a3600ba31a3499501de9cb99718314c8e42e