summaryrefslogtreecommitdiff
path: root/common/pwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/pwm.c')
-rw-r--r--common/pwm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/common/pwm.c b/common/pwm.c
index 7ed963e9dc..73b12fc20c 100644
--- a/common/pwm.c
+++ b/common/pwm.c
@@ -54,7 +54,8 @@ __attribute__((weak)) uint16_t pwm_get_raw_duty(enum pwm_channel ch)
return (pwm_get_duty(ch) * 65535) / 100;
}
-static int host_command_pwm_set_duty(struct host_cmd_handler_args *args)
+static enum ec_status
+host_command_pwm_set_duty(struct host_cmd_handler_args *args)
{
const struct ec_params_pwm_set_duty *p = args->params;
enum pwm_channel channel;
@@ -71,7 +72,8 @@ DECLARE_HOST_COMMAND(EC_CMD_PWM_SET_DUTY,
host_command_pwm_set_duty,
EC_VER_MASK(0));
-static int host_command_pwm_get_duty(struct host_cmd_handler_args *args)
+static enum ec_status
+host_command_pwm_get_duty(struct host_cmd_handler_args *args)
{
const struct ec_params_pwm_get_duty *p = args->params;
struct ec_response_pwm_get_duty *r = args->response;