aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/i2c/chips/pcf50633.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/chips/pcf50633.c b/drivers/i2c/chips/pcf50633.c
index 86ec6eb9c60..2c739b41fe1 100644
--- a/drivers/i2c/chips/pcf50633.c
+++ b/drivers/i2c/chips/pcf50633.c
@@ -1888,8 +1888,8 @@ static int __pcf50633bl_set_intensity(struct pcf50633_data *pcf, int intensity)
if (!(reg_read(pcf, PCF50633_REG_LEDENA) & 1))
old_intensity = 0;
- if ((bd->props.power != FB_BLANK_UNBLANK) ||
- (bd->props.fb_blank != FB_BLANK_UNBLANK))
+ if ((pcf->backlight->props.power != FB_BLANK_UNBLANK) ||
+ (pcf->backlight->props.fb_blank != FB_BLANK_UNBLANK))
intensity = 0;
/*