Skip to content

Commit 8a8e7f8

Browse files
tdzlag-linaro
authored andcommitted
fbdev: sh_mobile_lcdc_fb: 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. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Link: https://lore.kernel.org/r/20240305162425.23845-8-tzimmermann@suse.de Signed-off-by: Lee Jones <lee@kernel.org>
1 parent 397b749 commit 8a8e7f8

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

drivers/video/fbdev/sh_mobile_lcdcfb.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2140,17 +2140,10 @@ static int sh_mobile_lcdc_get_brightness(struct backlight_device *bdev)
21402140
return ch->bl_brightness;
21412141
}
21422142

2143-
static int sh_mobile_lcdc_check_fb(struct backlight_device *bdev,
2144-
struct fb_info *info)
2145-
{
2146-
return (info->bl_dev == bdev);
2147-
}
2148-
21492143
static const struct backlight_ops sh_mobile_lcdc_bl_ops = {
21502144
.options = BL_CORE_SUSPENDRESUME,
21512145
.update_status = sh_mobile_lcdc_update_bl,
21522146
.get_brightness = sh_mobile_lcdc_get_brightness,
2153-
.check_fb = sh_mobile_lcdc_check_fb,
21542147
};
21552148

21562149
static struct backlight_device *sh_mobile_lcdc_bl_probe(struct device *parent,

0 commit comments

Comments
 (0)