tpacpi-bat: merge upstream v2.0.
tpacpi-bat: merge upstream v2.1.