drivers/video/backlight/adp8860_bl.c: remove a redundant assignment for max_brightness
authorAxel Lin <axel.lin@gmail.com>
Tue, 26 Jul 2011 00:11:59 +0000 (17:11 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Jul 2011 03:57:08 +0000 (20:57 -0700)
We have set props.max_brightness before registering backlight device.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/backlight/adp8860_bl.c

index d2a96a421ffda737048ea7e30169ecfbb9a71d65..183b6f6398523d86fbb14a45f5fa08025ac71c3e 100644 (file)
@@ -722,8 +722,7 @@ static int __devinit adp8860_probe(struct i2c_client *client,
                goto out2;
        }
 
-       bl->props.max_brightness =
-               bl->props.brightness = ADP8860_MAX_BRIGHTNESS;
+       bl->props.brightness = ADP8860_MAX_BRIGHTNESS;
 
        data->bl = bl;