From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Thompson Date: Tue, 11 Jun 2019 14:11:25 +0000 Subject: Re: [PATCH 33/33] backlight: simplify lcd notifier Message-Id: <20190611141125.w6vhytsue7toif3g@holly.lan> List-Id: References: <20190528090304.9388-1-daniel.vetter@ffwll.ch> <20190528090304.9388-34-daniel.vetter@ffwll.ch> In-Reply-To: <20190528090304.9388-34-daniel.vetter@ffwll.ch> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Daniel Vetter Cc: linux-fbdev@vger.kernel.org, Bartlomiej Zolnierkiewicz , Lee Jones , Intel Graphics Development , LKML , DRI Development , Jingoo Han , Daniel Vetter , Sam Ravnborg On Tue, May 28, 2019 at 11:03:04AM +0200, Daniel Vetter wrote: > 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 > Reviewed-by: Sam Ravnborg > Reviewed-by: Maarten Lankhorst > Cc: Lee Jones > Cc: Daniel Thompson > Cc: Jingoo Han Acked-by: Daniel Thompson > --- > drivers/video/backlight/lcd.c | 11 ----------- > 1 file changed, 11 deletions(-) > > diff --git a/drivers/video/backlight/lcd.c b/drivers/video/backlight/lcd.c > index ecdda06989d0..d6b653aa4ee9 100644 > --- a/drivers/video/backlight/lcd.c > +++ b/drivers/video/backlight/lcd.c > @@ -30,17 +30,6 @@ static int fb_notifier_callback(struct notifier_block *self, > struct lcd_device *ld; > struct fb_event *evdata = data; > > - /* If we aren't interested in this event, skip it immediately ... */ > - switch (event) { > - case FB_EVENT_BLANK: > - case FB_EVENT_MODE_CHANGE: > - case FB_EARLY_EVENT_BLANK: > - case FB_R_EARLY_EVENT_BLANK: > - break; > - default: > - return 0; > - } > - > ld = container_of(self, struct lcd_device, fb_notif); > if (!ld->ops) > return 0; > -- > 2.20.1 >