diff options
author | Hyongbin Kim <hyongbink@nvidia.com> | 2013-10-15 12:36:10 +0900 |
---|---|---|
committer | Harry Hong <hhong@nvidia.com> | 2013-10-21 03:08:19 -0700 |
commit | 7a963b57029d792f12d95765c109585d6160f0ba (patch) | |
tree | fffb1cce60f9a85fdf11193b0deb216be749ab4e /include | |
parent | 41dfb7e9b980d5fa98a05c86ddf2376b4e3673cc (diff) |
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
(cherry picked from commit fd6efe4c23d6a4554643b582c5afc695dc0665b2)
Reviewed-on: http://git-master/r/301645
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/max17048_battery.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/max17048_battery.h b/include/linux/max17048_battery.h index 0a03efa3483a..69dec1372868 100644 --- a/include/linux/max17048_battery.h +++ b/include/linux/max17048_battery.h @@ -36,6 +36,8 @@ struct max17048_battery_model { struct max17048_platform_data { struct max17048_battery_model *model_data; + u32 read_batt_id; + s32 (*set_current_threshold)(s32 current_threshold, int min_cpu); int current_normal; int current_threshold_num; |