power: change return value of cpulock/unlock 77/267577/1 accepted/tizen/6.5/unified/20211208.210714 submit/tizen_6.5/20211207.085925
authorYoungjae Cho <y0.cho@samsung.com>
Tue, 7 Dec 2021 08:55:28 +0000 (17:55 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Tue, 7 Dec 2021 08:56:15 +0000 (17:56 +0900)
C# TCT expects DEVICE_ERROR_NONE for not supported feature.

Change-Id: I8e1d2f5f34e297e13a4fd05b1cf60c182d537771
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/power.c

index 1e32f3161e550741a30278fd5115495c5751d396..cae193b4f4edbd0ac63c165a0ab93cf0bc3e92fc 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;
                }
        }