Skip to content

Commit eca6b3d

Browse files
Thomas Zimmermannlag-linaro
authored andcommitted
backlight: pcf50633-backlight: 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. Signed-off-by: Thomas Zimmermann <[email protected]> Reviewed-by: Daniel Thompson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent d4db2f1 commit eca6b3d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/video/backlight/pcf50633-backlight.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include <linux/platform_device.h>
1111

1212
#include <linux/backlight.h>
13-
#include <linux/fb.h>
1413

1514
#include <linux/mfd/pcf50633/core.h>
1615
#include <linux/mfd/pcf50633/backlight.h>
@@ -53,7 +52,7 @@ static int pcf50633_bl_update_status(struct backlight_device *bl)
5352

5453

5554
if (bl->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK) ||
56-
bl->props.power != FB_BLANK_UNBLANK)
55+
bl->props.power != BACKLIGHT_POWER_ON)
5756
new_brightness = 0;
5857
else if (bl->props.brightness < pcf_bl->brightness_limit)
5958
new_brightness = bl->props.brightness;
@@ -106,7 +105,7 @@ static int pcf50633_bl_probe(struct platform_device *pdev)
106105
memset(&bl_props, 0, sizeof(bl_props));
107106
bl_props.type = BACKLIGHT_RAW;
108107
bl_props.max_brightness = 0x3f;
109-
bl_props.power = FB_BLANK_UNBLANK;
108+
bl_props.power = BACKLIGHT_POWER_ON;
110109

111110
if (pdata) {
112111
bl_props.brightness = pdata->default_brightness;

0 commit comments

Comments
 (0)