Fix lcd_on_direct() not to update old state
As updating old state within lcd_on_direct() causes several problems,
this patch reverts the parts related to state update of lcd_on_direct()
from the following patches.
-
613ecd25da136c6cf210e00a15a21783f7ecdf5b
-
32a6e47d137a00c2a8b037b23ef4387f2ebecb23
-
6e04a05360c0a77a1e4d0275d967acb89719d3e1
In general, lcd_on_direct() is followed by
default_proc_change_state_action(), and the subroutine is like below.
- lcd_on_direct() : update old state
-> ... (do something)
-> default_proc_change_state_action() : update old state once more
-> default_action()
So for the default_action(), if it is called through lcd_on_direct(),
pm_old_state and pm_cur_state is always same because old state is
updated twice. This makes below code in default_action() unreachable.
device_notify(DEVICE_NOTIFIER_LCD, (void *)&pm_cur_state);
As a result, lcd_on_direct() should not update the pm_old_state.
Change-Id: Iefe46720100c9adc858f86ba54b06361946e3b88
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>