hid: hid-picolcd: Remove struct backlight_ops.check_fb
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 5 Mar 2024 16:22:37 +0000 (17:22 +0100)
committerLee Jones <lee@kernel.org>
Thu, 28 Mar 2024 10:08:59 +0000 (10:08 +0000)
commitc34b107770ed6643ea999d7be3566f54ec065239
tree25ad84b73f616f417b93f66c2fd974605ad4d78b
parente755554568fbe638bb69f0faffb116436ec28af2
hid: hid-picolcd: Remove struct backlight_ops.check_fb

Update the driver to initialize struct fb_info.bl_dev to its backlight
device, if any. Thus rely on the backlight core code to match backlight
and framebuffer devices, and remove the extra check_fb function from
struct backlight_ops.

v2:
* protect against CONFIG_FB_BACKLIGHT (Javier, kernel test robot)
* reword commit message (Daniel)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Bruno Prémont <bonbons@linux-vserver.org>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://lore.kernel.org/r/20240305162425.23845-5-tzimmermann@suse.de
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/hid/hid-picolcd_backlight.c
drivers/hid/hid-picolcd_fb.c