diff options
Diffstat (limited to 'include/host_command.h')
-rw-r--r-- | include/host_command.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/host_command.h b/include/host_command.h index 3aa0d54d03..2be94cdb83 100644 --- a/include/host_command.h +++ b/include/host_command.h @@ -116,7 +116,7 @@ struct host_command { * Handler for the command. Args points to context for handler. * Returns result status (EC_RES_*). */ - int (*handler)(struct host_cmd_handler_args *args); + enum ec_status (*handler)(struct host_cmd_handler_args *args); /* Command code */ int command; /* Mask of supported versions */ @@ -265,7 +265,7 @@ void host_packet_receive(struct host_packet *pkt); version_mask} #else #define DECLARE_HOST_COMMAND(command, routine, version_mask) \ - int (routine)(struct host_cmd_handler_args *args) \ + enum ec_status (routine)(struct host_cmd_handler_args *args) \ __attribute__((unused)) #define DECLARE_PRIVATE_HOST_COMMAND(command, routine, version_mask) \ |