diff options
author | Ramakrishna Pallala <ramakrishna.pallala@intel.com> | 2015-05-24 09:11:58 +0530 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2015-05-23 22:43:28 +0200 |
commit | edd4ab0559316a1efe0881a4e2ccaeb4fec73142 (patch) | |
tree | 6b934e269707c18aec727d8e483f3cdad978017d /include/linux/power | |
parent | 4aeae9cb0dad117f055add68c48decaf489aecf3 (diff) | |
download | blackbird-op-linux-edd4ab0559316a1efe0881a4e2ccaeb4fec73142.tar.gz blackbird-op-linux-edd4ab0559316a1efe0881a4e2ccaeb4fec73142.zip |
power: max17042_battery: add HEALTH and TEMP_* properties support
This patch adds the support for following battery properties
to max17042 fuel gauge driver.
POWER_SUPPLY_PROP_TEMP_ALERT_MIN
POWER_SUPPLY_PROP_TEMP_ALERT_MAX
POWER_SUPPLY_PROP_TEMP_MIN
POWER_SUPPLY_PROP_TEMP_MAX
POWER_SUPPLY_PROP_HEALTH
Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'include/linux/power')
-rw-r--r-- | include/linux/power/max17042_battery.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/power/max17042_battery.h b/include/linux/power/max17042_battery.h index cf112b4075c8..522757ac9cd4 100644 --- a/include/linux/power/max17042_battery.h +++ b/include/linux/power/max17042_battery.h @@ -215,6 +215,10 @@ struct max17042_platform_data { * the datasheet although it can be changed by board designers. */ unsigned int r_sns; + int vmin; /* in millivolts */ + int vmax; /* in millivolts */ + int temp_min; /* in tenths of degree Celsius */ + int temp_max; /* in tenths of degree Celsius */ }; #endif /* __MAX17042_BATTERY_H_ */ |