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

fbdev: radeonfb: 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: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Helge Deller <deller@gmx.de>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240731123502.1145082-8-tzimmermann@suse.de

+1 -1
+1 -1
drivers/video/fbdev/aty/radeon_backlight.c
··· 179 179 217 * FB_BACKLIGHT_MAX / MAX_RADEON_LEVEL); 180 180 181 181 bd->props.brightness = bd->props.max_brightness; 182 - bd->props.power = FB_BLANK_UNBLANK; 182 + bd->props.power = BACKLIGHT_POWER_ON; 183 183 backlight_update_status(bd); 184 184 185 185 printk("radeonfb: Backlight initialized (%s)\n", name);