Skip to content

Commit

Permalink
backlight: omap1: Remove unused struct omap_backlight_config.set_power
Browse files Browse the repository at this point in the history
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 <tzimmermann@suse.de>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/20240319093915.31778-3-tzimmermann@suse.de
Signed-off-by: Lee Jones <lee@kernel.org>
  • Loading branch information
Thomas Zimmermann authored and Lee Jones committed Mar 28, 2024
1 parent 899dbfb commit b7ad4c6
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions drivers/video/backlight/omap1_bl.c
Original file line number Diff line number Diff line change
@@ -39,9 +39,6 @@ static inline void omapbl_send_enable(int enable)

static void omapbl_blank(struct omap_backlight *bl, int mode)
{
if (bl->pdata->set_power)
bl->pdata->set_power(bl->dev, mode);

switch (mode) {
case FB_BLANK_NORMAL:
case FB_BLANK_VSYNC_SUSPEND:
1 change: 0 additions & 1 deletion include/linux/platform_data/omap1_bl.h
Original file line number Diff line number Diff line change
@@ -6,7 +6,6 @@

struct omap_backlight_config {
int default_intensity;
int (*set_power)(struct device *dev, int state);
};

#endif

0 comments on commit b7ad4c6

Please sign in to comment.