Commit 33068216 authored by Thomas Zimmermann's avatar Thomas Zimmermann Committed by Lee Jones

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: default avatarThomas Zimmermann <tzimmermann@suse.de>
Cc: Robin van der Gracht <robin@protonic.nl>
Acked-by: default avatarRobin van der Gracht <robin@protonic.nl>
Acked-by: default avatarAndy Shevchenko <andy@kernel.org>
Reviewed-by: default avatarJavier Martinez Canillas <javierm@redhat.com>
Link: https://lore.kernel.org/r/20240305162425.23845-3-tzimmermann@suse.deSigned-off-by: default avatarLee Jones <lee@kernel.org>
parent e6c6fea5
...@@ -295,16 +295,8 @@ static int ht16k33_bl_update_status(struct backlight_device *bl) ...@@ -295,16 +295,8 @@ static int ht16k33_bl_update_status(struct backlight_device *bl)
return ht16k33_brightness_set(priv, brightness); return ht16k33_brightness_set(priv, brightness);
} }
static int ht16k33_bl_check_fb(struct backlight_device *bl, struct fb_info *fi)
{
struct ht16k33_priv *priv = bl_get_data(bl);
return (fi == NULL) || (fi->par == priv);
}
static const struct backlight_ops ht16k33_bl_ops = { static const struct backlight_ops ht16k33_bl_ops = {
.update_status = ht16k33_bl_update_status, .update_status = ht16k33_bl_update_status,
.check_fb = ht16k33_bl_check_fb,
}; };
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment