summaryrefslogtreecommitdiff
path: root/include/extpower_falco.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/extpower_falco.h')
-rw-r--r--include/extpower_falco.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/extpower_falco.h b/include/extpower_falco.h
index b5cbbcdc8d..8d7cb57b8b 100644
--- a/include/extpower_falco.h
+++ b/include/extpower_falco.h
@@ -8,7 +8,15 @@
#ifndef __CROS_EC_EXTPOWER_FALCO_H
#define __CROS_EC_EXTPOWER_FALCO_H
+#ifdef CONFIG_CHARGER_V2
+#error "This is not compatible with CONFIG_CHARGER_V2"
+/*
+ * ... but we can't define CONFIG_CHARGER_V1 because the tests don't need or
+ * want charge_state_v1.c. Sigh.
+ */
+#endif
#include "charge_state.h"
+#include "charge_state_v1.h"
/* Supported adapters */
enum adapter_type {