diff options
Diffstat (limited to 'common/usbc')
-rw-r--r-- | common/usbc/usb_pe_drp_sm.c | 4 | ||||
-rw-r--r-- | common/usbc/usb_tc_drp_acc_trysrc_sm.c | 15 |
2 files changed, 10 insertions, 9 deletions
diff --git a/common/usbc/usb_pe_drp_sm.c b/common/usbc/usb_pe_drp_sm.c index b2aa88902f..70c7a32eb7 100644 --- a/common/usbc/usb_pe_drp_sm.c +++ b/common/usbc/usb_pe_drp_sm.c @@ -4682,7 +4682,7 @@ DECLARE_CONSOLE_COMMAND(pe, command_pe, "USB PE"); #endif /* CONFIG_CMD_USB_PD_PE */ -static int hc_remote_pd_discovery(struct host_cmd_handler_args *args) +static enum ec_status hc_remote_pd_discovery(struct host_cmd_handler_args *args) { const uint8_t *port = args->params; struct ec_params_usb_pd_discovery_entry *r = args->response; @@ -4704,7 +4704,7 @@ DECLARE_HOST_COMMAND(EC_CMD_USB_PD_DISCOVERY, hc_remote_pd_discovery, EC_VER_MASK(0)); -static int hc_remote_pd_get_amode(struct host_cmd_handler_args *args) +static enum ec_status hc_remote_pd_get_amode(struct host_cmd_handler_args *args) { struct svdm_amode_data *modep; const struct ec_params_usb_pd_get_mode_request *p = args->params; diff --git a/common/usbc/usb_tc_drp_acc_trysrc_sm.c b/common/usbc/usb_tc_drp_acc_trysrc_sm.c index de9381742b..6db060a3a2 100644 --- a/common/usbc/usb_tc_drp_acc_trysrc_sm.c +++ b/common/usbc/usb_tc_drp_acc_trysrc_sm.c @@ -981,7 +981,7 @@ static void handle_new_power_state(int port) * HOST COMMANDS */ #ifdef HAS_TASK_HOSTCMD -static int hc_pd_ports(struct host_cmd_handler_args *args) +static enum ec_status hc_pd_ports(struct host_cmd_handler_args *args) { struct ec_response_usb_pd_ports *r = args->response; @@ -1011,7 +1011,7 @@ static const enum typec_mux typec_mux_map[USB_PD_CTRL_MUX_COUNT] = { }; #endif -static int hc_usb_pd_control(struct host_cmd_handler_args *args) +static enum ec_status hc_usb_pd_control(struct host_cmd_handler_args *args) { const struct ec_params_usb_pd_control *p = args->params; struct ec_response_usb_pd_control_v1 *r_v1 = args->response; @@ -1083,7 +1083,7 @@ DECLARE_HOST_COMMAND(EC_CMD_USB_PD_CONTROL, hc_usb_pd_control, EC_VER_MASK(0) | EC_VER_MASK(1)); -static int hc_remote_flash(struct host_cmd_handler_args *args) +static enum ec_status hc_remote_flash(struct host_cmd_handler_args *args) { const struct ec_params_usb_pd_fw_update *p = args->params; int port = p->port; @@ -1151,7 +1151,8 @@ DECLARE_HOST_COMMAND(EC_CMD_USB_PD_FW_UPDATE, hc_remote_flash, EC_VER_MASK(0)); -static int hc_remote_rw_hash_entry(struct host_cmd_handler_args *args) +static enum ec_status +hc_remote_rw_hash_entry(struct host_cmd_handler_args *args) { int i, idx = 0, found = 0; const struct ec_params_usb_pd_rw_hash_entry *p = args->params; @@ -1182,7 +1183,7 @@ DECLARE_HOST_COMMAND(EC_CMD_USB_PD_RW_HASH_ENTRY, hc_remote_rw_hash_entry, EC_VER_MASK(0)); -static int hc_remote_pd_dev_info(struct host_cmd_handler_args *args) +static enum ec_status hc_remote_pd_dev_info(struct host_cmd_handler_args *args) { const uint8_t *port = args->params; struct ec_params_usb_pd_rw_hash_entry *r = args->response; @@ -1207,7 +1208,7 @@ DECLARE_HOST_COMMAND(EC_CMD_USB_PD_DEV_INFO, #ifndef CONFIG_USB_PD_TCPC #ifdef CONFIG_EC_CMD_PD_CHIP_INFO -static int hc_remote_pd_chip_info(struct host_cmd_handler_args *args) +static enum ec_status hc_remote_pd_chip_info(struct host_cmd_handler_args *args) { const struct ec_params_pd_chip_info *p = args->params; struct ec_response_pd_chip_info_v1 *info; @@ -1254,7 +1255,7 @@ void pd_notify_dp_alt_mode_entry(void) #endif /* CONFIG_HOSTCMD_EVENTS */ #ifdef CONFIG_USB_PD_ALT_MODE_DFP -static int hc_remote_pd_set_amode(struct host_cmd_handler_args *args) +static enum ec_status hc_remote_pd_set_amode(struct host_cmd_handler_args *args) { const struct ec_params_usb_pd_set_mode_request *p = args->params; |