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

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 <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>

authored by

Thomas Zimmermann and committed by
Lee Jones
b7ad4c67 899dbfb2

-4
-3
drivers/video/backlight/omap1_bl.c
··· 39 39 40 40 static void omapbl_blank(struct omap_backlight *bl, int mode) 41 41 { 42 - if (bl->pdata->set_power) 43 - bl->pdata->set_power(bl->dev, mode); 44 - 45 42 switch (mode) { 46 43 case FB_BLANK_NORMAL: 47 44 case FB_BLANK_VSYNC_SUSPEND:
-1
include/linux/platform_data/omap1_bl.h
··· 6 6 7 7 struct omap_backlight_config { 8 8 int default_intensity; 9 - int (*set_power)(struct device *dev, int state); 10 9 }; 11 10 12 11 #endif