diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-07-26 02:11:59 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-26 05:57:08 +0200 |
commit | 6b19bad8b2d4cf7150b58ce6619b30364bdab1db (patch) | |
tree | 197ab398f92476f7e9bd6240924af523d1fca5f1 | |
parent | drivers/video/backlight/ld9040.c: small fixes (diff) | |
download | linux-6b19bad8b2d4cf7150b58ce6619b30364bdab1db.tar.xz linux-6b19bad8b2d4cf7150b58ce6619b30364bdab1db.zip |
drivers/video/backlight/adp8860_bl.c: remove a redundant assignment for max_brightness
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>
-rw-r--r-- | drivers/video/backlight/adp8860_bl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/backlight/adp8860_bl.c b/drivers/video/backlight/adp8860_bl.c index d2a96a421ffd..183b6f639852 100644 --- a/drivers/video/backlight/adp8860_bl.c +++ b/drivers/video/backlight/adp8860_bl.c @@ -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; |