Skip to content

Commit 0133952

Browse files
Thomas Zimmermannlag-linaro
authored andcommitted
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: Thomas Zimmermann <[email protected]> Reviewed-by: Daniel Thompson <[email protected]> Reviewed-by: Javier Martinez Canillas <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent c34b107 commit 0133952

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

drivers/video/backlight/aat2870_bl.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include <linux/platform_device.h>
1313
#include <linux/mutex.h>
1414
#include <linux/delay.h>
15-
#include <linux/fb.h>
1615
#include <linux/backlight.h>
1716
#include <linux/mfd/aat2870.h>
1817

@@ -90,15 +89,9 @@ static int aat2870_bl_update_status(struct backlight_device *bd)
9089
return 0;
9190
}
9291

93-
static int aat2870_bl_check_fb(struct backlight_device *bd, struct fb_info *fi)
94-
{
95-
return 1;
96-
}
97-
9892
static const struct backlight_ops aat2870_bl_ops = {
9993
.options = BL_CORE_SUSPENDRESUME,
10094
.update_status = aat2870_bl_update_status,
101-
.check_fb = aat2870_bl_check_fb,
10295
};
10396

10497
static int aat2870_bl_probe(struct platform_device *pdev)

0 commit comments

Comments
 (0)