diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-07-25 17:11:59 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-25 20:57:08 -0700 |
commit | 6b19bad8b2d4cf7150b58ce6619b30364bdab1db (patch) | |
tree | 197ab398f92476f7e9bd6240924af523d1fca5f1 /drivers/video/backlight | |
parent | e2e7da9bccd77ef6793b865c1b78c7e519ccc562 (diff) | |
download | op-kernel-dev-6b19bad8b2d4cf7150b58ce6619b30364bdab1db.zip op-kernel-dev-6b19bad8b2d4cf7150b58ce6619b30364bdab1db.tar.gz |
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>
Diffstat (limited to 'drivers/video/backlight')
-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 d2a96a4..183b6f6 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; |