summaryrefslogtreecommitdiff
path: root/include/battery.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/battery.h')
-rw-r--r--include/battery.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/battery.h b/include/battery.h
index f754c9de91..d7e9a0f0c2 100644
--- a/include/battery.h
+++ b/include/battery.h
@@ -165,6 +165,10 @@ int battery_get_avg_voltage(void); /* in mV */
#define BATT_FLAG_BAD_AVERAGE_CURRENT 0x00001000
/* All of the above BATT_FLAG_BAD_* bits */
#define BATT_FLAG_BAD_ANY 0x000017fc
+/* Flags which are set or unset on every access (via battery_get_params) */
+#define BATT_FLAG_VOLATILE \
+ (BATT_FLAG_BAD_ANY | BATT_FLAG_WANT_CHARGE | BATT_FLAG_RESPONSIVE | \
+ BATT_FLAG_IMBALANCED_CELL)
/* Battery constants */
struct battery_info {