Skip to content

Commit c38a7db

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

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

drivers/video/backlight/platform_lcd.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@ static int platform_lcd_set_power(struct lcd_device *lcd, int power)
5353
static int platform_lcd_match(struct lcd_device *lcd, struct fb_info *info)
5454
{
5555
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);
6056

6157
return plcd->us->parent == info->device;
6258
}

include/video/platform_lcd.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,8 @@
88
*/
99

1010
struct plat_lcd_data;
11-
struct fb_info;
1211

1312
struct plat_lcd_data {
1413
int (*probe)(struct plat_lcd_data *);
1514
void (*set_power)(struct plat_lcd_data *, unsigned int power);
16-
int (*match_fb)(struct plat_lcd_data *, struct fb_info *);
1715
};
18-

0 commit comments

Comments
 (0)