Skip to content

Commit b7ad4c6

Browse files
Thomas Zimmermannlag-linaro
authored andcommitted
backlight: omap1: Remove unused struct omap_backlight_config.set_power
The callback set_power in struct omap_backlight_config is not implemented anywhere. Remove it from the structure and driver. Signed-off-by: Thomas Zimmermann <[email protected]> Reviewed-by: Sam Ravnborg <[email protected]> Reviewed-by: Daniel Thompson <[email protected]> Reviewed-by: Dan Carpenter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent 899dbfb commit b7ad4c6

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

drivers/video/backlight/omap1_bl.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ static inline void omapbl_send_enable(int enable)
3939

4040
static void omapbl_blank(struct omap_backlight *bl, int mode)
4141
{
42-
if (bl->pdata->set_power)
43-
bl->pdata->set_power(bl->dev, mode);
44-
4542
switch (mode) {
4643
case FB_BLANK_NORMAL:
4744
case FB_BLANK_VSYNC_SUSPEND:

include/linux/platform_data/omap1_bl.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
struct omap_backlight_config {
88
int default_intensity;
9-
int (*set_power)(struct device *dev, int state);
109
};
1110

1211
#endif

0 commit comments

Comments
 (0)