soc: rockchip: system_monitor: Drop FB_EARLY_EVENT_BLANK support
Change-Id: I4fd76bc67578fbf12acaa9ed3004b4a565dd7a75 Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
This commit is contained in:
@@ -1454,24 +1454,15 @@ static int rockchip_monitor_fb_notifier(struct notifier_block *nb,
|
||||
{
|
||||
struct fb_event *event = ptr;
|
||||
|
||||
switch (action) {
|
||||
case FB_EARLY_EVENT_BLANK:
|
||||
switch (*((int *)event->data)) {
|
||||
case FB_BLANK_UNBLANK:
|
||||
rockchip_clear_system_status(SYS_STATUS_SUSPEND);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
if (action != FB_EVENT_BLANK)
|
||||
return NOTIFY_OK;
|
||||
|
||||
switch (*((int *)event->data)) {
|
||||
case FB_BLANK_UNBLANK:
|
||||
rockchip_clear_system_status(SYS_STATUS_SUSPEND);
|
||||
break;
|
||||
case FB_EVENT_BLANK:
|
||||
switch (*((int *)event->data)) {
|
||||
case FB_BLANK_POWERDOWN:
|
||||
rockchip_set_system_status(SYS_STATUS_SUSPEND);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
case FB_BLANK_POWERDOWN:
|
||||
rockchip_set_system_status(SYS_STATUS_SUSPEND);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user