From: Kim, Milo Date: Fri, 23 Mar 2012 22:02:11 +0000 (-0700) Subject: leds-lm3530: set the max_brightness to 127 X-Git-Tag: v3.4-rc1~109^2~90 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbe6453204c568723679212f6d0653b92b3d6244;p=pandora-kernel.git leds-lm3530: set the max_brightness to 127 Only 7 bits are used for updating the brightness. (register address : A0h) So the max_brightness property of lm3530 should be set to 127. On initializing registers, maximum initial brightness is limited to 'max_brightness'. Division-by-two is removed on updating the brightness. This arithmetic is not necessary because the range of brightness is 0 ~ 127= . Signed-off-by: Milo(Woogyom) Kim Cc: Linus Walleij Cc: Richard Purdie Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed