]> 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>
Wed, 3 Aug 2011 00:52:42 +0000 (10:52 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 4 Aug 2011 02:50:34 +0000 (12:50 +1000)
commit7a8f75242840513ab2984c69b7c00caa626dd033
tree09e9071071112783f8cef42cb4857e67867539a9
parentdb9e2190a49618d9b23f6e290e62a2c90d45a681
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