[Prevent] Fix 47826 2.1b_release accepted/tizen_2.1/20130425.034855 submit/tizen_2.1/20130424.232309
authorSeungbae Shin <seungbae.shin@samsung.com>
Fri, 12 Apr 2013 14:56:24 +0000 (23:56 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Fri, 12 Apr 2013 14:56:24 +0000 (23:56 +0900)
src/modules/module-suspend-on-idle.c

index 862d601..623125e 100644 (file)
 #define PM_RESET_TIMER  0x1     /**< reset timer for unlock */
 #define PM_KEEP_TIMER   0x2     /**< keep timer for unlock */
 
-/* parameter for pm_set_lcd_timeout */
-#define CUSTOM_TIMEOUT  0x1
-
-
 struct pwr_msg {
        pid_t pid;
        unsigned int cond;
@@ -173,27 +169,6 @@ static int send_msg(unsigned int s_bits, unsigned int timeout, unsigned int time
        return rc;
 }
 
-static int pm_change_state(unsigned int s_bits)
-{
-       /* s_bits is LCD_NORMAL 0x1, LCD_DIM 0x2, LCD_OFF 0x4, SUSPEND 0x8
-        * Stage change to NORMAL       0x100
-        * Stage change to LCDDIM       0x200
-        * Stage change to LCDOFF       0x400
-        * Stage change to SLEEP        0x800
-        * */
-       switch (s_bits) {
-       case LCD_NORMAL:
-       case LCD_DIM:
-       case LCD_OFF:
-       case SUSPEND:
-       case POWER_OFF:
-               break;
-       default:
-               return -1;
-       }
-       return send_msg(s_bits << SHIFT_CHANGE_STATE, 0, 0);
-}
-
 static int pm_lock_state(unsigned int s_bits, unsigned int flag,
                      unsigned int timeout)
 {
@@ -230,18 +205,6 @@ static int pm_unlock_state(unsigned int s_bits, unsigned int flag)
        return send_msg(s_bits, 0, 0);
 }
 
-static void pm_set_lcd_timeout(unsigned int normal, unsigned int dim, unsigned int lock)
-{
-       unsigned int s_bits = CUSTOM_TIMEOUT;
-
-       if (lock == HOLD_KEY_BLOCK)
-               s_bits += HOLD_KEY_BLOCK;
-
-       s_bits = (s_bits << SHIFT_CHANGE_TIMEOUT);
-       return send_msg(s_bits, normal, dim);
-}
-
-
 #endif
 
 static void timeout_cb(pa_mainloop_api*a, pa_time_event* e, const struct timeval *t, void *userdata) {