diff options
author | Hyongbin Kim <hyongbink@nvidia.com> | 2013-10-15 12:36:10 +0900 |
---|---|---|
committer | Gabby Lee <galee@nvidia.com> | 2013-10-16 22:39:09 -0700 |
commit | fd6efe4c23d6a4554643b582c5afc695dc0665b2 (patch) | |
tree | 77f2bff176e5306728423930966fff3a4064e628 /include | |
parent | 1aa792d601dcc436e05d8d10033b714ee129a474 (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
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@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; |