Skip to content

Commit 3306821

Browse files
Thomas Zimmermannlag-linaro
authored andcommitted
auxdisplay: ht16k33: Remove struct backlight_ops.check_fb
The driver sets struct fb_info.bl_dev to the correct backlight device. Thus rely on the backlight core code to match backlight and framebuffer devices, and remove the extra check_fb() function from struct backlight_ops. v3: * use 'check_fb()' in commit message (Andy) Signed-off-by: Thomas Zimmermann <[email protected]> Cc: Robin van der Gracht <[email protected]> Acked-by: Robin van der Gracht <[email protected]> Acked-by: Andy Shevchenko <[email protected]> Reviewed-by: Javier Martinez Canillas <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent e6c6fea commit 3306821

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

drivers/auxdisplay/ht16k33.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -295,16 +295,8 @@ static int ht16k33_bl_update_status(struct backlight_device *bl)
295295
return ht16k33_brightness_set(priv, brightness);
296296
}
297297

298-
static int ht16k33_bl_check_fb(struct backlight_device *bl, struct fb_info *fi)
299-
{
300-
struct ht16k33_priv *priv = bl_get_data(bl);
301-
302-
return (fi == NULL) || (fi->par == priv);
303-
}
304-
305298
static const struct backlight_ops ht16k33_bl_ops = {
306299
.update_status = ht16k33_bl_update_status,
307-
.check_fb = ht16k33_bl_check_fb,
308300
};
309301

310302
/*

0 commit comments

Comments
 (0)