Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262315
b: refs/heads/master
c: 5d6f921
h: refs/heads/master
i:
  262313: 0dd5e29
  262311: d26fe58
v: v3
  • Loading branch information
Axel Lin authored and Linus Torvalds committed Aug 4, 2011
1 parent 29499bb commit 647d29e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4c4dd903e72507c853b8c2b04b22e0d0c721fd93
refs/heads/master: 5d6f921b42749d1a70441685b7a4f2801e12ebfb
4 changes: 2 additions & 2 deletions trunk/drivers/video/backlight/aat2870_bl.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ static inline int aat2870_brightness(struct aat2870_bl_driver_data *aat2870_bl,
struct backlight_device *bd = aat2870_bl->bd;
int val;

val = brightness * aat2870_bl->max_current;
val = brightness * (aat2870_bl->max_current - 1);
val /= bd->props.max_brightness;

return val;
Expand Down Expand Up @@ -175,7 +175,7 @@ static int aat2870_bl_probe(struct platform_device *pdev)
else
aat2870_bl->channels = AAT2870_BL_CH_ALL;

if (pdata->max_brightness > 0)
if (pdata->max_current > 0)
aat2870_bl->max_current = pdata->max_current;
else
aat2870_bl->max_current = AAT2870_CURRENT_27_9;
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/mfd/aat2870.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ enum aat2870_id {

/* Backlight current magnitude (mA) */
enum aat2870_current {
AAT2870_CURRENT_0_45,
AAT2870_CURRENT_0_45 = 1,
AAT2870_CURRENT_0_90,
AAT2870_CURRENT_1_80,
AAT2870_CURRENT_2_70,
Expand Down

0 comments on commit 647d29e

Please sign in to comment.