diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-08-03 19:21:17 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-08-03 20:25:22 -0400 |
commit | 5d6f921b42749d1a70441685b7a4f2801e12ebfb (patch) | |
tree | 6c2bdf6a7de23e7ec7d8d5990586e1a0527164b0 /include | |
parent | 4c4dd903e72507c853b8c2b04b22e0d0c721fd93 (diff) |
drivers/video/backlight/aat2870_bl.c: fix setting max_current
- Current implementation tests wrong value for setting
aat2870_bl->max_current.
- In the current implementation, we cannot differentiate between 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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mfd/aat2870.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mfd/aat2870.h b/include/linux/mfd/aat2870.h index 89212df05622..f7316c29bdec 100644 --- a/include/linux/mfd/aat2870.h +++ b/include/linux/mfd/aat2870.h | |||
@@ -89,7 +89,7 @@ enum aat2870_id { | |||
89 | 89 | ||
90 | /* Backlight current magnitude (mA) */ | 90 | /* Backlight current magnitude (mA) */ |
91 | enum aat2870_current { | 91 | enum aat2870_current { |
92 | AAT2870_CURRENT_0_45, | 92 | AAT2870_CURRENT_0_45 = 1, |
93 | AAT2870_CURRENT_0_90, | 93 | AAT2870_CURRENT_0_90, |
94 | AAT2870_CURRENT_1_80, | 94 | AAT2870_CURRENT_1_80, |
95 | AAT2870_CURRENT_2_70, | 95 | AAT2870_CURRENT_2_70, |