]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
backlight: platform_lcd: Remove match_fb from struct plat_lcd_data
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 6 Sep 2024 07:52:31 +0000 (09:52 +0200)
committerLee Jones <lee@kernel.org>
Mon, 30 Sep 2024 15:49:42 +0000 (16:49 +0100)
The match_fb callback in struct plat_lcd_data is unused. Remove it.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Link: https://lore.kernel.org/r/20240906075439.98476-18-tzimmermann@suse.de
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/video/backlight/platform_lcd.c
include/video/platform_lcd.h

index 08d0ff400d88afaf4f37c5dd6b498c573ea48410..8b89d2f47df7a4f59c0db0c0f7edd5a18cb49b53 100644 (file)
@@ -53,10 +53,6 @@ static int platform_lcd_set_power(struct lcd_device *lcd, int power)
 static int platform_lcd_match(struct lcd_device *lcd, struct fb_info *info)
 {
        struct platform_lcd *plcd = to_our_lcd(lcd);
-       struct plat_lcd_data *pdata = plcd->pdata;
-
-       if (pdata->match_fb)
-               return pdata->match_fb(pdata, info);
 
        return plcd->us->parent == info->device;
 }
index 6a95184a28c167396c51e85e8a85301a750ced55..2bdf4651929832047769587499725154c29e9755 100644 (file)
@@ -8,11 +8,8 @@
 */
 
 struct plat_lcd_data;
-struct fb_info;
 
 struct plat_lcd_data {
        int     (*probe)(struct plat_lcd_data *);
        void    (*set_power)(struct plat_lcd_data *, unsigned int power);
-       int     (*match_fb)(struct plat_lcd_data *, struct fb_info *);
 };
-