]> git.karo-electronics.de Git - karo-tx-linux.git/commit
1. current implementation tests wrong value for setting aat2870_bl->max_current.
authorAxel Lin <axel.lin@gmail.com>
Sat, 16 Jul 2011 13:31:01 +0000 (23:31 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 26 Jul 2011 05:05:08 +0000 (15:05 +1000)
commit631ba65adda2cc53c4e1887fa5225a71a3f9c34c
tree35f874fca035bea602fc3de16b6640ff5a6b45b2
parentb759201aba8449ca1ed0ddeb090553d414464646
1. current implementation tests wrong value for setting aat2870_bl->max_current.
2. In current implementation, we cannot differentiate below 2 cases:
       a) if pdata->max_current is not set , or
       b) pdata->max_current is set to AAT2870_CURRENT_0_45 ( which is also 0 ).
   fix it by setting AAT2870_CURRENT_0_45 to be 1 and adjust the equation
   in aat2870_brightness() accordingly.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: Samuel Ortiz <sameo@linux.intel.com>
Tested-by: Jin Park <jinyoungp@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/video/backlight/aat2870_bl.c
include/linux/mfd/aat2870.h