p1-common: fix open source charger compilation

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: Idbf36b1430e99bdaac70102becd380ade81976a5
Merge "p1-common: fix open source charger compilation" into android-5.0