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

fbdev: sh_mobile_lcdc_fb: Use backlight power constants

Replace FB_BLANK_ constants with their counterparts from the
backlight subsystem. The values are identical, so there's no
change in functionality or semantics.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Helge Deller <deller@gmx.de>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240731123502.1145082-10-tzimmermann@suse.de

+3 -3
+3 -3
drivers/video/fbdev/sh_mobile_lcdcfb.c
··· 1049 1049 sh_mobile_lcdc_display_on(ch); 1050 1050 1051 1051 if (ch->bl) { 1052 - ch->bl->props.power = FB_BLANK_UNBLANK; 1052 + ch->bl->props.power = BACKLIGHT_POWER_ON; 1053 1053 backlight_update_status(ch->bl); 1054 1054 } 1055 1055 } ··· 1082 1082 } 1083 1083 1084 1084 if (ch->bl) { 1085 - ch->bl->props.power = FB_BLANK_POWERDOWN; 1085 + ch->bl->props.power = BACKLIGHT_POWER_OFF; 1086 1086 backlight_update_status(ch->bl); 1087 1087 } 1088 1088 ··· 2125 2125 struct sh_mobile_lcdc_chan *ch = bl_get_data(bdev); 2126 2126 int brightness = bdev->props.brightness; 2127 2127 2128 - if (bdev->props.power != FB_BLANK_UNBLANK || 2128 + if (bdev->props.power != BACKLIGHT_POWER_ON || 2129 2129 bdev->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK)) 2130 2130 brightness = 0; 2131 2131