diff options
author | Sangjin Kim <sangjin3.kim@samsung.com> | 2012-12-18 17:25:54 +0900 |
---|---|---|
committer | Sangjin Kim <sangjin3.kim@samsung.com> | 2012-12-18 17:25:54 +0900 |
commit | 72589fbea4178f058ddf29aedd9a911450638dbd (patch) | |
tree | 063bad8723c4296a87532172876ed59c089ade2f | |
parent | 9d2f25f1076729d004ac497dafe91870ed79640a (diff) | |
download | device-manager-plugin-emul-72589fbea4178f058ddf29aedd9a911450638dbd.tar.gz device-manager-plugin-emul-72589fbea4178f058ddf29aedd9a911450638dbd.tar.bz2 device-manager-plugin-emul-72589fbea4178f058ddf29aedd9a911450638dbd.zip |
Revert "add API (sys_set_power_lock, sys_get_power_lock_support)"
Cause of platform request.
This reverts commit 9d2f25f1076729d004ac497dafe91870ed79640a.
-rw-r--r-- | include/devman_define_node_path.h | 2 | ||||
-rw-r--r-- | include/devman_plugin_intf.h | 7 | ||||
-rw-r--r-- | packaging/device-manager-plugin-maru.spec | 2 | ||||
-rw-r--r-- | src/device_manager_plugin_maru.c | 36 |
4 files changed, 1 insertions, 46 deletions
diff --git a/include/devman_define_node_path.h b/include/devman_define_node_path.h index 35a4584..4df6558 100644 --- a/include/devman_define_node_path.h +++ b/include/devman_define_node_path.h @@ -39,8 +39,6 @@ #define LEDS_TORCH_BRIGHTNESS_PATH "/sys/class/leds/leds-torch/brightness" #define POWER_STATE_PATH "/sys/power/state" -#define POWER_UNLOCK_PATH "/sys/power/wake_unlock" -#define POWER_LOCK_PATH "/sys/power/wake_lock" #define POWER_WAKEUP_COUNT_PATH "/sys/power/wakeup_count" #define MEMNOTIFY_NODE "/dev/memnotify" diff --git a/include/devman_plugin_intf.h b/include/devman_plugin_intf.h index 5ec5680..bc0f03e 100644 --- a/include/devman_plugin_intf.h +++ b/include/devman_plugin_intf.h @@ -58,11 +58,6 @@ enum { POWER_STATE_SUSPEND = 0, }; -enum { - POWER_UNLOCK = 0, - POWER_LOCK, -}; - typedef struct { int (*OEM_sys_get_display_count) (int *value); @@ -132,8 +127,6 @@ typedef struct { /* TODO: Change args type */ int (*OEM_sys_set_power_state) (int value); - int (*OEM_sys_set_power_lock) (int value); - int (*OEM_sys_get_power_lock_support)(int *value); /* TODO: Should determine enum values of wakeup_count nodes */ int (*OEM_sys_get_power_wakeup_count) (int *value); diff --git a/packaging/device-manager-plugin-maru.spec b/packaging/device-manager-plugin-maru.spec index 42d20e2..f9c0b7b 100644 --- a/packaging/device-manager-plugin-maru.spec +++ b/packaging/device-manager-plugin-maru.spec @@ -1,6 +1,6 @@ Name: device-manager-plugin-maru Summary: device-manager-plugin-maru -Version: 0.0.13 +Version: 0.0.12 Release: 1 Group: TO_BE/FILLED_IN License: TO_BE/FILLED_IN diff --git a/src/device_manager_plugin_maru.c b/src/device_manager_plugin_maru.c index d659143..2be0c41 100644 --- a/src/device_manager_plugin_maru.c +++ b/src/device_manager_plugin_maru.c @@ -642,40 +642,6 @@ int OEM_sys_set_power_state(int value) return -1; } -int OEM_sys_set_power_lock(int value) -{ - static int power_lock_state=-1; - - if(power_lock_state == value) - return -1; - else - power_lock_state = value; - - switch (value) { - case POWER_UNLOCK: - return sys_set_str(POWER_UNLOCK_PATH, "mainlock"); - case POWER_LOCK: - return sys_set_str(POWER_LOCK_PATH, "mainlock"); - } - - return 0; -} - -int OEM_sys_get_power_lock_support(int *value) -{ - int err = -1; - - err = sys_check_node(POWER_LOCK_PATH); - if (err == -1) { - devmgr_log("power lock node not found"); - *value = 0; - } - else - *value = 1; - - return 0; -} - GENERATE_ACCESSORS_INT_RW(power_wakeup_count, POWER_WAKEUP_COUNT_PATH) GENERATE_ACCESSORS_INT_W(memnotify_threshold_lv1, MEMNOTIFY_THRESHOLD_LV1_PATH) @@ -991,8 +957,6 @@ EXPORT_API const OEM_sys_devman_plugin_interface *OEM_sys_get_devman_plugin_inte devman_plugin_interface_emul.OEM_sys_set_leds_torch_brightness = &OEM_sys_set_leds_torch_brightness; devman_plugin_interface_emul.OEM_sys_set_power_state = &OEM_sys_set_power_state; - devman_plugin_interface_emul.OEM_sys_set_power_lock = &OEM_sys_set_power_lock; - devman_plugin_interface_emul.OEM_sys_get_power_lock_support = &OEM_sys_get_power_lock_support; /* TODO: Should determine enum values of wakeup_count nodes */ devman_plugin_interface_emul.OEM_sys_get_power_wakeup_count = &OEM_sys_get_power_wakeup_count; |