Skip to content

Commit

Permalink
drivers/video/backlight/adp8860_bl.c: remove a redundant assignment f…
Browse files Browse the repository at this point in the history
…or max_brightness

We have set props.max_brightness before registering backlight device.

Signed-off-by: Axel Lin <[email protected]>
Acked-by: Mike Frysinger <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
AxelLin authored and torvalds committed Jul 26, 2011
1 parent e2e7da9 commit 6b19bad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/video/backlight/adp8860_bl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 6b19bad

Please sign in to comment.