diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2019-08-13 12:36:08 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-08-14 18:55:16 +0000 |
commit | 29b86be6ba06f1de6973a6d2f4fa3c9eba8be0f1 (patch) | |
tree | 8ceeb0ad98e98e2335dfb37e5affabd808bfe3e1 /include/charge_manager.h | |
parent | a18332870ba0f77eb686366d616201da6ff90527 (diff) | |
download | chrome-ec-29b86be6ba06f1de6973a6d2f4fa3c9eba8be0f1.tar.gz |
charge_manager: Mark functions overridable
Functions such as board_fill_source_power_info are overridable. This
patch annotates them properly using override macros, and removes their
declarations from board.h.
These functions are declared in both charge_manager.h and
{kukui,krane,kodama}/board.h. The latter causes comm-dev.c to fail
to be compiled in chrome-base/diagnostics.
BUG=none
BRANCH=none
TEST=buildall
Change-Id: I27d6dfe2fa9299550ac5205c34095a4fe02dabdb
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1752597
Tested-by: Yu-Ping Wu <yupingso@chromium.org>
Diffstat (limited to 'include/charge_manager.h')
-rw-r--r-- | include/charge_manager.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/charge_manager.h b/include/charge_manager.h index 53e0ff1b25..4c29ea15a5 100644 --- a/include/charge_manager.h +++ b/include/charge_manager.h @@ -276,7 +276,7 @@ enum adc_channel board_get_vbus_adc(int port); * @param port Dedicated charge port. * @return 1 if the port is sink. */ -int board_charge_port_is_sink(int port); +__override_proto int board_charge_port_is_sink(int port); /** * Board specific callback to check if the given port is connected. @@ -284,7 +284,7 @@ int board_charge_port_is_sink(int port); * @param port Dedicated charge port. * @return 1 if the port is connected. */ -int board_charge_port_is_connected(int port); +__override_proto int board_charge_port_is_connected(int port); /** * Board specific callback to fill passed power_info structure with current info @@ -294,6 +294,7 @@ int board_charge_port_is_connected(int port); * @param port Dedicated charge port. * @param r USB PD power info to be updated. */ +__override_proto void board_fill_source_power_info(int port, struct ec_response_usb_pd_power_info *r); |