From a6fc10dff4d7d13f4d6b462091861df5c3107bf2 Mon Sep 17 00:00:00 2001 From: Youngjae Cho Date: Tue, 7 Dec 2021 17:55:28 +0900 Subject: [PATCH] power: change return value of cpulock/unlock C# TCT expects DEVICE_ERROR_NONE for not supported feature. Change-Id: I8e1d2f5f34e297e13a4fd05b1cf60c182d537771 Signed-off-by: Youngjae Cho (cherry picked from commit 21e09d4797a02b17408b59cb2c1c59a95b35efd3) --- src/power.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/power.c b/src/power.c index 1e32f31..cae193b 100644 --- a/src/power.c +++ b/src/power.c @@ -462,7 +462,7 @@ int device_power_request_lock(power_lock_e type, int timeout_ms) "LockCpu", g_variant_new("(i)", timeout_ms), NULL); return errno_to_device_error(ret); */ - return DEVICE_ERROR_NOT_SUPPORTED; + return DEVICE_ERROR_NONE; } } @@ -516,7 +516,7 @@ int device_power_release_lock(power_lock_e type) "UnlockCpu", NULL, NULL); return errno_to_device_error(ret_val); */ - return DEVICE_ERROR_NOT_SUPPORTED; + return DEVICE_ERROR_NONE; } } -- 2.7.4