]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
backlight: journada_bl: Use backlight power constants
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 24 Jun 2024 15:20:02 +0000 (17:20 +0200)
committerLee Jones <lee@kernel.org>
Thu, 4 Jul 2024 15:45:25 +0000 (16:45 +0100)
Replace FB_BLANK_ constants with their counterparts from the
backlight subsystem. The values are identical, so there's no
change in functionality.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Link: https://lore.kernel.org/r/20240624152033.25016-8-tzimmermann@suse.de
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/video/backlight/jornada720_bl.c

index 066d0dc98f6072ca2f848b57b933cf8bfd43f8e7..e28d2c07179894026c2d7f8669337ff064e88fd2 100644 (file)
@@ -7,7 +7,6 @@
 
 #include <linux/backlight.h>
 #include <linux/device.h>
-#include <linux/fb.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/platform_device.h>
@@ -121,7 +120,7 @@ static int jornada_bl_probe(struct platform_device *pdev)
                return ret;
        }
 
-       bd->props.power = FB_BLANK_UNBLANK;
+       bd->props.power = BACKLIGHT_POWER_ON;
        bd->props.brightness = BL_DEF_BRIGHT;
        /*
         * note. make sure max brightness is set otherwise