summaryrefslogtreecommitdiff
path: root/power/common.c
diff options
context:
space:
mode:
authorTomasz Michalec <tm@semihalf.com>2021-09-02 16:49:49 +0200
committerCommit Bot <commit-bot@chromium.org>2021-09-03 15:35:30 +0000
commitcde2d8998daf2530079e8395ce79f20b1beda70e (patch)
treef9f58b813d35dc752542be276715a6e2ffd4e7da /power/common.c
parenta6f0603888e0300748227a1c381d94bf89ffa7c2 (diff)
downloadchrome-ec-cde2d8998daf2530079e8395ce79f20b1beda70e.tar.gz
power: Fix host_command_hibernation_delay return
host_command_hibernation_delay() should return enum ec_status and correct value of this type to indicate success is EC_RES_SUCCESS BUG=none BRANCH=none TEST=none Signed-off-by: Tomasz Michalec <tm@semihalf.com> Change-Id: I50902829a7ef5d09786ab81bff9d791bac0dfad6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3140204 Commit-Queue: Jeremy Bettis <jbettis@chromium.org> Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'power/common.c')
-rw-r--r--power/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/power/common.c b/power/common.c
index 64a434b1d8..0f83a2ce61 100644
--- a/power/common.c
+++ b/power/common.c
@@ -1020,7 +1020,7 @@ host_command_hibernation_delay(struct host_cmd_handler_args *args)
r->hibernate_delay = hibernate_delay;
args->response_size = sizeof(struct ec_response_hibernation_delay);
- return EC_SUCCESS;
+ return EC_RES_SUCCESS;
}
DECLARE_HOST_COMMAND(EC_CMD_HIBERNATION_DELAY,
host_command_hibernation_delay,