max17048: add sysfs for check battery capacity
authorHyongbin Kim <hyongbink@nvidia.com>
Tue, 15 Oct 2013 03:36:10 +0000 (12:36 +0900)
committerGabby Lee <galee@nvidia.com>
Thu, 17 Oct 2013 05:39:09 +0000 (22:39 -0700)
commitfd6efe4c23d6a4554643b582c5afc695dc0665b2
tree77f2bff176e5306728423930966fff3a4064e628
parent1aa792d601dcc436e05d8d10033b714ee129a474
max17048: add sysfs for check battery capacity

For check battery capacity, read Battery ID from ADC.
User can check with below adb commend.
"cat /sys/class/i2c-dev/i2c-0/device/0-0036/battery_capacity"

Bug 1368059

Change-Id: I49ba1216244b85258fa3ef1ec8f60fd27a81e26b
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/299269
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>
drivers/power/max17048_battery.c
include/linux/max17048_battery.h