From ac49fac880808e7c2e27adb55a6adb0c2b72c8ca Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sun, 28 Mar 2021 15:08:38 +1300 Subject: Add a common header for board_is_sourcing_vbus() This function prototype is defined in lots of files, none of which is visible to Zephyr. Add a prototype in one place and remove the others. BUG=b:183296099 BRANCH=none TEST=make buildall Signed-off-by: Simon Glass Change-Id: Ia324327a69b117483ab9ee5c85eba93c0fb5ad9c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2789799 Reviewed-by: Jack Rosenthal --- board/drawcia/board.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'board/drawcia') diff --git a/board/drawcia/board.h b/board/drawcia/board.h index 0479234318..04c2fcc70f 100644 --- a/board/drawcia/board.h +++ b/board/drawcia/board.h @@ -147,8 +147,6 @@ enum battery_type { BATTERY_TYPE_COUNT, }; -int board_is_sourcing_vbus(int port); - #ifdef CONFIG_KEYBOARD_FACTORY_TEST extern const int keyboard_factory_scan_pins[][2]; extern const int keyboard_factory_scan_pins_used; -- cgit v1.2.1