backlight: pwm-backlight: Remove struct backlight_ops.check_fb
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 5 Mar 2024 16:22:39 +0000 (17:22 +0100)
committerLee Jones <lee@kernel.org>
Thu, 28 Mar 2024 10:09:02 +0000 (10:09 +0000)
commit397b7493729288ac308c5f4ff3496eaeb1080293
tree8cbf811f0a8a141fa35dd3b5b3fea93242b6408e
parent0133952aaca26f91f8c667b1c2f0c2f68d9db242
backlight: pwm-backlight: Remove struct backlight_ops.check_fb

The internal check_fb callback from struct pwm_bl_data is never
implemented. The driver's implementation of check_fb always
returns true, which is the backlight core's default if no
implementation has been set. So remove the code from the driver.

v2:
* reword commit message

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://lore.kernel.org/r/20240305162425.23845-7-tzimmermann@suse.de
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/video/backlight/pwm_bl.c
include/linux/pwm_backlight.h