]> 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>
Tue, 26 Jul 2011 10:14:45 +0000 (20:14 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 2 Aug 2011 05:14:20 +0000 (15:14 +1000)
commita9aa4a6a9166d6e58618bf1a0064834ccb7188b9
treeaca0bcee611bc3a810b8a23ef283217e8fd6cfb3
parentdde3e2903eac33854a1e6e8f38aa43f906730b55
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