summaryrefslogtreecommitdiff
path: root/include/charge_state.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/charge_state.h')
-rw-r--r--include/charge_state.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/charge_state.h b/include/charge_state.h
index e19a2a9ab1..1435621615 100644
--- a/include/charge_state.h
+++ b/include/charge_state.h
@@ -47,11 +47,11 @@ enum charge_state {
/* Charge state flags */
/* Forcing idle state */
-#define CHARGE_FLAG_FORCE_IDLE (1 << 0)
+#define CHARGE_FLAG_FORCE_IDLE BIT(0)
/* External (AC) power is present */
-#define CHARGE_FLAG_EXTERNAL_POWER (1 << 1)
+#define CHARGE_FLAG_EXTERNAL_POWER BIT(1)
/* Battery is responsive */
-#define CHARGE_FLAG_BATT_RESPONSIVE (1 << 2)
+#define CHARGE_FLAG_BATT_RESPONSIVE BIT(2)
/* Debugging constants, in the same order as enum charge_state. This string
* table was moved here to sync with enum above.