diff options
Diffstat (limited to 'include/peripheral_charger.h')
-rw-r--r-- | include/peripheral_charger.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/peripheral_charger.h b/include/peripheral_charger.h index e4b4993d47..bb27a1207d 100644 --- a/include/peripheral_charger.h +++ b/include/peripheral_charger.h @@ -343,7 +343,6 @@ struct pchg_drv { * Should be defined in board.c. */ extern struct pchg pchgs[]; -extern const int pchg_count; /* Utility macro converting port config to port number. */ #define PCHG_CTX_TO_PORT(ctx) ((ctx) - &pchgs[0]) @@ -368,4 +367,9 @@ void pchg_task(void *u); */ __override_proto void board_pchg_power_on(int port, bool on); +/** + * Return counts for PCHG charger. + */ +int board_get_pchg_count(void); + #endif /* __CROS_EC_PERIPHERAL_CHARGER_H */ |