Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 344511
b: refs/heads/master
c: 656d4f3
h: refs/heads/master
i:
  344509: bd5d4be
  344507: 8fa3973
  344503: 3dfa042
  344495: 66a36e7
  344479: c9ff3c4
  344447: a9e92ac
v: v3
  • Loading branch information
Laurent Pinchart committed Nov 21, 2012
1 parent 60ea29e commit 7b0ecc2
Show file tree
Hide file tree
Showing 3 changed files with 4 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: 074d0da486e2a5b8e80c35070ede7104f302f6da
refs/heads/master: 656d4f332c02b14e62fe3f4247a1dcdc33961de6
3 changes: 2 additions & 1 deletion trunk/drivers/video/sh_mobile_lcdcfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -2282,14 +2282,15 @@ static int sh_mobile_lcdc_update_bl(struct backlight_device *bdev)
bdev->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK))
brightness = 0;

ch->bl_brightness = brightness;
return ch->cfg->bl_info.set_brightness(brightness);
}

static int sh_mobile_lcdc_get_brightness(struct backlight_device *bdev)
{
struct sh_mobile_lcdc_chan *ch = bl_get_data(bdev);

return ch->cfg->bl_info.get_brightness();
return ch->bl_brightness;
}

static int sh_mobile_lcdc_check_fb(struct backlight_device *bdev,
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/video/sh_mobile_lcdcfb.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ struct sh_mobile_lcdc_chan {

/* Backlight */
struct backlight_device *bl;
unsigned int bl_brightness;

/* FB */
struct fb_info *info;
Expand Down

0 comments on commit 7b0ecc2

Please sign in to comment.