mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
input: sensors: hall: mh248: drop FB_EARLY_EVENT_BLANK support
Signed-off-by: Tao Huang <huangtao@rock-chips.com> Change-Id: I7287af4d8a8cb3e3f6cc10e92c23fffd17eb9fbd
This commit is contained in:
@@ -52,23 +52,17 @@ static int hall_fb_notifier_callback(struct notifier_block *self,
|
||||
|
||||
mh248 = container_of(self, struct mh248_para, fb_notif);
|
||||
|
||||
if (action != FB_EVENT_BLANK)
|
||||
return NOTIFY_DONE;
|
||||
|
||||
mutex_lock(&mh248->ops_lock);
|
||||
if (action == FB_EARLY_EVENT_BLANK) {
|
||||
switch (*((int *)event->data)) {
|
||||
case FB_BLANK_UNBLANK:
|
||||
break;
|
||||
default:
|
||||
mh248->is_suspend = 1;
|
||||
break;
|
||||
}
|
||||
} else if (action == FB_EVENT_BLANK) {
|
||||
switch (*((int *)event->data)) {
|
||||
case FB_BLANK_UNBLANK:
|
||||
mh248->is_suspend = 0;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
switch (*((int *)event->data)) {
|
||||
case FB_BLANK_UNBLANK:
|
||||
mh248->is_suspend = 0;
|
||||
break;
|
||||
default:
|
||||
mh248->is_suspend = 1;
|
||||
break;
|
||||
}
|
||||
mutex_unlock(&mh248->ops_lock);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user