Commit 0133952a authored by Thomas Zimmermann's avatar Thomas Zimmermann Committed by Lee Jones

backlight: aat2870-backlight: Remove struct backlight.check_fb

The driver's implementation of check_fb always returns true, which
is the default if no implementation has been set. So remove the code
from the driver.
Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
Reviewed-by: default avatarJavier Martinez Canillas <javierm@redhat.com>
Link: https://lore.kernel.org/r/20240305162425.23845-6-tzimmermann@suse.deSigned-off-by: default avatarLee Jones <lee@kernel.org>
parent c34b1077
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/fb.h>
#include <linux/backlight.h> #include <linux/backlight.h>
#include <linux/mfd/aat2870.h> #include <linux/mfd/aat2870.h>
...@@ -90,15 +89,9 @@ static int aat2870_bl_update_status(struct backlight_device *bd) ...@@ -90,15 +89,9 @@ static int aat2870_bl_update_status(struct backlight_device *bd)
return 0; return 0;
} }
static int aat2870_bl_check_fb(struct backlight_device *bd, struct fb_info *fi)
{
return 1;
}
static const struct backlight_ops aat2870_bl_ops = { static const struct backlight_ops aat2870_bl_ops = {
.options = BL_CORE_SUSPENDRESUME, .options = BL_CORE_SUSPENDRESUME,
.update_status = aat2870_bl_update_status, .update_status = aat2870_bl_update_status,
.check_fb = aat2870_bl_check_fb,
}; };
static int aat2870_bl_probe(struct platform_device *pdev) static int aat2870_bl_probe(struct platform_device *pdev)
......
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