summaryrefslogtreecommitdiff
path: root/common/fpsensor
diff options
context:
space:
mode:
Diffstat (limited to 'common/fpsensor')
-rw-r--r--common/fpsensor/fpsensor.c10
-rw-r--r--common/fpsensor/fpsensor_state.c9
2 files changed, 10 insertions, 9 deletions
diff --git a/common/fpsensor/fpsensor.c b/common/fpsensor/fpsensor.c
index 11060baf6c..5574a625fb 100644
--- a/common/fpsensor/fpsensor.c
+++ b/common/fpsensor/fpsensor.c
@@ -289,7 +289,7 @@ void fp_task(void)
#endif /* !HAVE_FP_PRIVATE_DRIVER */
}
-static int fp_command_passthru(struct host_cmd_handler_args *args)
+static enum ec_status fp_command_passthru(struct host_cmd_handler_args *args)
{
const struct ec_params_fp_passthru *params = args->params;
void *out = args->response;
@@ -321,7 +321,7 @@ static int fp_command_passthru(struct host_cmd_handler_args *args)
}
DECLARE_HOST_COMMAND(EC_CMD_FP_PASSTHRU, fp_command_passthru, EC_VER_MASK(0));
-static int fp_command_info(struct host_cmd_handler_args *args)
+static enum ec_status fp_command_info(struct host_cmd_handler_args *args)
{
struct ec_response_fp_info *r = args->response;
@@ -355,7 +355,7 @@ static int validate_fp_buffer_offset(const uint32_t buffer_size,
return EC_SUCCESS;
}
-static int fp_command_frame(struct host_cmd_handler_args *args)
+static enum ec_status fp_command_frame(struct host_cmd_handler_args *args)
{
const struct ec_params_fp_frame *params = args->params;
void *out = args->response;
@@ -443,7 +443,7 @@ static int fp_command_frame(struct host_cmd_handler_args *args)
}
DECLARE_HOST_COMMAND(EC_CMD_FP_FRAME, fp_command_frame, EC_VER_MASK(0));
-static int fp_command_stats(struct host_cmd_handler_args *args)
+static enum ec_status fp_command_stats(struct host_cmd_handler_args *args)
{
struct ec_response_fp_stats *r = args->response;
@@ -470,7 +470,7 @@ static int validate_template_format(
return EC_RES_SUCCESS;
}
-static int fp_command_template(struct host_cmd_handler_args *args)
+static enum ec_status fp_command_template(struct host_cmd_handler_args *args)
{
const struct ec_params_fp_template *params = args->params;
uint32_t size = params->size & ~FP_TEMPLATE_COMMIT;
diff --git a/common/fpsensor/fpsensor_state.c b/common/fpsensor/fpsensor_state.c
index bfbf0c6cb5..c395bd7af3 100644
--- a/common/fpsensor/fpsensor_state.c
+++ b/common/fpsensor/fpsensor_state.c
@@ -92,7 +92,7 @@ int fp_get_next_event(uint8_t *out)
}
DECLARE_EVENT_SOURCE(EC_MKBP_EVENT_FINGERPRINT, fp_get_next_event);
-static int fp_command_tpm_seed(struct host_cmd_handler_args *args)
+static enum ec_status fp_command_tpm_seed(struct host_cmd_handler_args *args)
{
const struct ec_params_fp_seed *params = args->params;
@@ -117,7 +117,8 @@ int fp_tpm_seed_is_set(void)
return fp_encryption_status & FP_ENC_STATUS_SEED_SET;
}
-static int fp_command_encryption_status(struct host_cmd_handler_args *args)
+static enum ec_status
+fp_command_encryption_status(struct host_cmd_handler_args *args)
{
struct ec_response_fp_encryption_status *r = args->response;
@@ -182,7 +183,7 @@ int fp_set_sensor_mode(uint32_t mode, uint32_t *mode_output)
return EC_RES_SUCCESS;
}
-static int fp_command_mode(struct host_cmd_handler_args *args)
+static enum ec_status fp_command_mode(struct host_cmd_handler_args *args)
{
const struct ec_params_fp_mode *p = args->params;
struct ec_response_fp_mode *r = args->response;
@@ -196,7 +197,7 @@ static int fp_command_mode(struct host_cmd_handler_args *args)
}
DECLARE_HOST_COMMAND(EC_CMD_FP_MODE, fp_command_mode, EC_VER_MASK(0));
-static int fp_command_context(struct host_cmd_handler_args *args)
+static enum ec_status fp_command_context(struct host_cmd_handler_args *args)
{
const struct ec_params_fp_context *params = args->params;