bq20z75: Add support for charge properties
authorRhyland Klein <rklein@nvidia.com>
Tue, 25 Jan 2011 19:10:06 +0000 (11:10 -0800)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Mon, 31 Jan 2011 13:18:33 +0000 (16:18 +0300)
commit51d07566045787b99219d809639c8724506fc78a
tree7102c9c7d0855a8cbd8c2111ae878dc72847f5c1
parent1bae4ce27c9c90344f23c65ea6966c50ffeae2f5
bq20z75: Add support for charge properties

Adding support for charge properties for gas gauge.

Also ensuring that battery mode is correct now for energy as well as
charge properties by setting it on the fly.

I also added 2 functions to power_supply.h to help identify the units for
specific properties more easily by power supplies.

Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
drivers/power/bq20z75.c
include/linux/power_supply.h