diff options
Diffstat (limited to 'common/led_common.c')
-rw-r--r-- | common/led_common.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/common/led_common.c b/common/led_common.c index 2c73ba95e6..cabaf22e10 100644 --- a/common/led_common.c +++ b/common/led_common.c @@ -47,6 +47,10 @@ int led_auto_control_is_enabled(enum ec_led_id led_id) return (led_auto_control_flags & LED_AUTO_CONTROL_FLAG(led_id)) != 0; } +/* Empty functions cannot be verified in testing to not have had any + * side-effects, remove from coverage. + * LCOV_EXCL_START + */ __attribute__((weak)) void board_led_auto_control(void) { /* @@ -56,6 +60,7 @@ __attribute__((weak)) void board_led_auto_control(void) * is changed. */ } +/* LCOV_EXCL_STOP */ static enum ec_status led_command_control(struct host_cmd_handler_args *args) { @@ -91,6 +96,7 @@ static enum ec_status led_command_control(struct host_cmd_handler_args *args) } DECLARE_HOST_COMMAND(EC_CMD_LED_CONTROL, led_command_control, EC_VER_MASK(1)); +#ifndef CONFIG_ZEPHYR __attribute__((weak)) void led_control(enum ec_led_id led_id, enum ec_led_state state) { @@ -99,3 +105,4 @@ __attribute__((weak)) void led_control(enum ec_led_id led_id, * LED. Boards can provide their own implementation. */ } +#endif |