public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drivers/video/backlight/adp8860_bl.c: remove a redundant assignment for max_brightness
@ 2011-07-10 23:30 Axel Lin
  2011-07-11  2:58 ` Mike Frysinger
  0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2011-07-10 23:30 UTC (permalink / raw)
  To: linux-kernel
  Cc: Michael Hennerich, Richard Purdie, Andrew Morton,
	device-drivers-devel

We have set props.max_brightness before registering backlight device.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 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 24a6dfd..66bc74d 100644
--- a/drivers/video/backlight/adp8860_bl.c
+++ b/drivers/video/backlight/adp8860_bl.c
@@ -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;
 
-- 
1.7.4.1




^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-07-11  2:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-10 23:30 [PATCH] drivers/video/backlight/adp8860_bl.c: remove a redundant assignment for max_brightness Axel Lin
2011-07-11  2:58 ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox