]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
backlight: ipaq-micro-backlight: Use backlight power constants
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 24 Jun 2024 15:20:01 +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: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Link: https://lore.kernel.org/r/20240624152033.25016-7-tzimmermann@suse.de
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/video/backlight/ipaq_micro_bl.c

index f595b8c8cbb2419ba65d5692340ab91e316c2887..19ff66e444bcbe550d371e876ba3da09b6d35007 100644 (file)
@@ -7,7 +7,6 @@
 
 #include <linux/backlight.h>
 #include <linux/err.h>
-#include <linux/fb.h>
 #include <linux/init.h>
 #include <linux/mfd/ipaq-micro.h>
 #include <linux/module.h>
@@ -42,7 +41,7 @@ static const struct backlight_ops micro_bl_ops = {
 static const struct backlight_properties micro_bl_props = {
        .type = BACKLIGHT_RAW,
        .max_brightness = 255,
-       .power = FB_BLANK_UNBLANK,
+       .power = BACKLIGHT_POWER_ON,
        .brightness = 64,
 };