power: change return value of cpulock/unlock 78/267578/1
authorYoungjae Cho <y0.cho@samsung.com>
Tue, 7 Dec 2021 08:55:28 +0000 (17:55 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Tue, 7 Dec 2021 09:00:53 +0000 (09:00 +0000)
C# TCT expects DEVICE_ERROR_NONE for not supported feature.

Change-Id: I8e1d2f5f34e297e13a4fd05b1cf60c182d537771
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit 21e09d4797a02b17408b59cb2c1c59a95b35efd3)

src/power.c

index 1e32f31..cae193b 100644 (file)
@@ -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;
                }
        }