Skip to contentSkip to conversation

drivers/video/backlight/adp8860_bl.c: remove a redundant assignment for max_brightness

PATCH In review Axel Lin 2 participants 2 messages Jul 10, 2011 – Jul 11, 2011

Subsystems (3)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 drivers/video/backlight/adp8860_bl.c: remove a redundant assignment for max_brightness

We have set props.max_brightness before registering backlight device.

---
 drivers/video/backlight/adp8860_bl.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/video/backlight/adp8860_bl.c +1 -2
index 24a6dfd..66bc74d 100644
@@ -721,8 +721,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;
 
Signature · 1 line
1.7.4.1