Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284816
b: refs/heads/master
c: acfdc2e
h: refs/heads/master
v: v3
  • Loading branch information
Alexander Stein authored and Florian Tobias Schandinat committed Nov 11, 2011
1 parent b6bb205 commit c33826a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 5d910426a6e80194a50e33351c91abcad266c809
refs/heads/master: acfdc2e1bdb4b148e7546fe8948d8f75bd2f9377
5 changes: 4 additions & 1 deletion trunk/drivers/video/atmel_lcdfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,11 @@ static int atmel_bl_update_status(struct backlight_device *bl)
brightness = 0;

lcdc_writel(sinfo, ATMEL_LCDC_CONTRAST_VAL, brightness);
lcdc_writel(sinfo, ATMEL_LCDC_CONTRAST_CTR,
if (contrast_ctr & ATMEL_LCDC_POL_POSITIVE)
lcdc_writel(sinfo, ATMEL_LCDC_CONTRAST_CTR,
brightness ? contrast_ctr : 0);
else
lcdc_writel(sinfo, ATMEL_LCDC_CONTRAST_CTR, contrast_ctr);

bl->props.fb_blank = bl->props.power = sinfo->bl_power = power;

Expand Down

0 comments on commit c33826a

Please sign in to comment.