diff options
| author | Ramakrishna Pallala <ramakrishna.pallala@intel.com> | 2015-05-23 23:41:58 -0400 |
|---|---|---|
| committer | Sebastian Reichel <sre@kernel.org> | 2015-05-23 16:43:28 -0400 |
| commit | edd4ab0559316a1efe0881a4e2ccaeb4fec73142 (patch) | |
| tree | 6b934e269707c18aec727d8e483f3cdad978017d /include/linux/power | |
| parent | 4aeae9cb0dad117f055add68c48decaf489aecf3 (diff) | |
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 { | |||
| 215 | * the datasheet although it can be changed by board designers. | 215 | * the datasheet although it can be changed by board designers. |
| 216 | */ | 216 | */ |
| 217 | unsigned int r_sns; | 217 | unsigned int r_sns; |
| 218 | int vmin; /* in millivolts */ | ||
| 219 | int vmax; /* in millivolts */ | ||
| 220 | int temp_min; /* in tenths of degree Celsius */ | ||
| 221 | int temp_max; /* in tenths of degree Celsius */ | ||
| 218 | }; | 222 | }; |
| 219 | 223 | ||
| 220 | #endif /* __MAX17042_BATTERY_H_ */ | 224 | #endif /* __MAX17042_BATTERY_H_ */ |
