mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 19:13:47 +02:00
fbdev: nvidiafb: 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: Antonino Daplas <adaplas@gmail.com> Cc: Helge Deller <deller@gmx.de> Reviewed-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240731123502.1145082-6-tzimmermann@suse.de
This commit is contained in:
parent
35f7f68272
commit
d408dcfa73
|
|
@ -112,7 +112,7 @@ void nvidia_bl_init(struct nvidia_par *par)
|
|||
0x534 * FB_BACKLIGHT_MAX / MAX_LEVEL);
|
||||
|
||||
bd->props.brightness = bd->props.max_brightness;
|
||||
bd->props.power = FB_BLANK_UNBLANK;
|
||||
bd->props.power = BACKLIGHT_POWER_ON;
|
||||
backlight_update_status(bd);
|
||||
|
||||
printk("nvidia: Backlight initialized (%s)\n", name);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user