bq20z75: Add optional battery detect gpio
authorRhyland Klein <rklein@nvidia.com>
Tue, 1 Mar 2011 00:55:28 +0000 (16:55 -0800)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Tue, 1 Mar 2011 19:24:01 +0000 (22:24 +0300)
commitbb879101606dd7235d8f4ecd0f707b63281d0838
tree74aae7149b888a1e54f23608314f795ee992d47f
parentb5db7cde69f87178fb771970a2b512a452a9d680
bq20z75: Add optional battery detect gpio

Adding support for an optional gpio for battery detection. This is
passed in through the i2c platform data. It also accepts another
field, battery_detect_present to signify the gpio state which means
the battery is present, either 0 (low) or 1 (high).

Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
drivers/power/bq20z75.c
include/linux/power/bq20z75.h [new file with mode: 0644]