Looking at wrong register to see if the LCD is turned off?

diff --git a/drivers/i2c/chips/pcf50633.c b/drivers/i2c/chips/pcf50633.c
index 7ac466b..45ba5bf 100644
--- a/drivers/i2c/chips/pcf50633.c
+++ b/drivers/i2c/chips/pcf50633.c
@@ -1469,7 +1469,7 @@ static int pcf50633bl_get_intensity(struct 
backlight_device *bd)
        struct pcf50633_data *pcf = bl_get_data(bd);
        int intensity = reg_read(pcf, PCF50633_REG_LEDOUT) << 2;

-       if (!(reg_read(pcf, PCF50633_REG_LEDOUT) & 1))
+       if (!(reg_read(pcf, PCF50633_REG_LEDENA) & 1))
                intensity = 0;

        return intensity & 0xff;
@@ -1482,7 +1482,7 @@ static int pcf50633bl_set_intensity(struct 
backlight_device *bd)
        int old_intensity = reg_read(pcf, PCF50633_REG_LEDOUT);
        int ret;

-       if (!(reg_read(pcf, PCF50633_REG_LEDOUT) & 1))
+       if (!(reg_read(pcf, PCF50633_REG_LEDENA) & 1))
                old_intensity = 0;

        if ((bd->props.power != FB_BLANK_UNBLANK) ||



Reply via email to