Skip to content

Commit d4db2f1

Browse files
Thomas Zimmermannlag-linaro
authored andcommitted
backlight: pandora-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 c2d9c49 commit d4db2f1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/video/backlight/pandora_bl.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#include <linux/kernel.h>
1212
#include <linux/platform_device.h>
1313
#include <linux/delay.h>
14-
#include <linux/fb.h>
1514
#include <linux/backlight.h>
1615
#include <linux/mfd/twl.h>
1716
#include <linux/err.h>
@@ -43,7 +42,7 @@ static int pandora_backlight_update_status(struct backlight_device *bl)
4342
struct pandora_private *priv = bl_get_data(bl);
4443
u8 r;
4544

46-
if (bl->props.power != FB_BLANK_UNBLANK)
45+
if (bl->props.power != BACKLIGHT_POWER_ON)
4746
brightness = 0;
4847
if (bl->props.state & BL_CORE_FBBLANK)
4948
brightness = 0;

0 commit comments

Comments
 (0)