summaryrefslogtreecommitdiff
path: root/include/linux/power
diff options
context:
space:
mode:
authorChaitanya Bandi <bandik@nvidia.com>2013-05-03 16:13:00 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 13:13:34 -0700
commit430dbd469a2ee8fd9730463c3b0ff2e9abde06ea (patch)
treea1d7c1f630d19e8c250d579033e2081004071993 /include/linux/power
parentb295a4dc685369809aed3371eb4ba59f412332cc (diff)
power: max17042: Get battery presence from pdata
Battery presence will be obtained from platform data. Removed battery presence detection through reading temperature. Bug 1281739 Change-Id: Ic87fe5a8ba4d183a26c7bec616c08a07714a9de6 Signed-off-by: Chaitanya Bandi <bandik@nvidia.com> Reviewed-on: http://git-master/r/225218 (cherry picked from commit 8c030ab47fcf1e6d9588aa437d254a082926ee60) Reviewed-on: http://git-master/r/228276 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Diffstat (limited to 'include/linux/power')
-rw-r--r--include/linux/power/max17042_battery.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/power/max17042_battery.h b/include/linux/power/max17042_battery.h
index 02f91ab0fc16..79d99f6f2a9d 100644
--- a/include/linux/power/max17042_battery.h
+++ b/include/linux/power/max17042_battery.h
@@ -214,6 +214,7 @@ struct max17042_platform_data {
* the datasheet although it can be changed by board designers.
*/
unsigned int r_sns;
+ bool is_battery_present;
};
#ifdef CONFIG_BATTERY_MAX17042