Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

backlight: platform_lcd: Remove match_fb from struct plat_lcd_data

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>

authored by

Thomas Zimmermann and committed by
Lee Jones
c38a7db5 516f3251

-7
-4
drivers/video/backlight/platform_lcd.c
··· 53 53 static int platform_lcd_match(struct lcd_device *lcd, struct fb_info *info) 54 54 { 55 55 struct platform_lcd *plcd = to_our_lcd(lcd); 56 - struct plat_lcd_data *pdata = plcd->pdata; 57 - 58 - if (pdata->match_fb) 59 - return pdata->match_fb(pdata, info); 60 56 61 57 return plcd->us->parent == info->device; 62 58 }
-3
include/video/platform_lcd.h
··· 8 8 */ 9 9 10 10 struct plat_lcd_data; 11 - struct fb_info; 12 11 13 12 struct plat_lcd_data { 14 13 int (*probe)(struct plat_lcd_data *); 15 14 void (*set_power)(struct plat_lcd_data *, unsigned int power); 16 - int (*match_fb)(struct plat_lcd_data *, struct fb_info *); 17 15 }; 18 -