Skip to content

Commit 1dcff4a

Browse files
committed
backlight: simplify lcd notifier
With all the work I've done on replacing fb notifier calls with direct calls into fbcon the backlight/lcd notifier is the only user left. It will only receive events now that it cares about, hence we can remove this check. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> Reviewed-by: Sam Ravnborg <sam@ravnborg.org> Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Acked-by: Daniel Thompson <daniel.thompson@linaro.org> Cc: Lee Jones <lee.jones@linaro.org> Cc: Daniel Thompson <daniel.thompson@linaro.org> Cc: Jingoo Han <jingoohan1@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190528090304.9388-34-daniel.vetter@ffwll.ch
1 parent af14403 commit 1dcff4a

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

  • drivers/video/backlight

‎drivers/video/backlight/lcd.c‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,6 @@ static int fb_notifier_callback(struct notifier_block *self,
3030
struct lcd_device *ld;
3131
struct fb_event *evdata = data;
3232

33-
/* If we aren't interested in this event, skip it immediately ... */
34-
switch (event) {
35-
case FB_EVENT_BLANK:
36-
case FB_EVENT_MODE_CHANGE:
37-
case FB_EARLY_EVENT_BLANK:
38-
case FB_R_EARLY_EVENT_BLANK:
39-
break;
40-
default:
41-
return 0;
42-
}
43-
4433
ld = container_of(self, struct lcd_device, fb_notif);
4534
if (!ld->ops)
4635
return 0;

0 commit comments

Comments
 (0)