{
static enum device_flags late_flags;
- if (flags & LCD_OFF_LATE_MODE)
+ if (flags & LCD_OFF_LATE_MODE) {
broadcast_lcd_off(SIGNAL_POST, late_flags);
- else
+ device_notify(DEVICE_NOTIFIER_LCD_OFF_COMPLETE, NULL);
+ } else {
late_flags = flags;
+ }
}
static unsigned long get_lcd_on_flags(void)
DD_LIST_FOREACH(lcdon_ops, l, ops)
ops->stop(flags);
- if (flags & AMBIENT_MODE)
+ if (flags & AMBIENT_MODE) {
broadcast_lcd_off_late(flags);
- else
+ } else {
broadcast_lcd_off(SIGNAL_POST, flags);
-
- device_notify(DEVICE_NOTIFIER_LCD_OFF_COMPLETE, NULL);
+ device_notify(DEVICE_NOTIFIER_LCD_OFF_COMPLETE, NULL);
+ }
}
void set_stay_touchscreen_off(int val)