Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144674
b: refs/heads/master
c: b09de42
h: refs/heads/master
v: v3
  • Loading branch information
Sascha Hauer committed May 5, 2009
1 parent 2080612 commit 63cb325
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 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: 7b9020badf78327b3fcb567b466a1dd4d33710ce
refs/heads/master: b09de4209d179c92ab880d911e72a892d053ff01
14 changes: 7 additions & 7 deletions trunk/drivers/video/mx3fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1152,11 +1152,11 @@ static struct fb_ops mx3fb_ops = {
*/
static int mx3fb_suspend(struct platform_device *pdev, pm_message_t state)
{
struct mx3fb_data *drv_data = platform_get_drvdata(pdev);
struct mx3fb_info *mx3_fbi = drv_data->fbi->par;
struct mx3fb_data *mx3fb = platform_get_drvdata(pdev);
struct mx3fb_info *mx3_fbi = mx3fb->fbi->par;

acquire_console_sem();
fb_set_suspend(drv_data->fbi, 1);
fb_set_suspend(mx3fb->fbi, 1);
release_console_sem();

if (mx3_fbi->blank == FB_BLANK_UNBLANK) {
Expand All @@ -1172,16 +1172,16 @@ static int mx3fb_suspend(struct platform_device *pdev, pm_message_t state)
*/
static int mx3fb_resume(struct platform_device *pdev)
{
struct mx3fb_data *drv_data = platform_get_drvdata(pdev);
struct mx3fb_info *mx3_fbi = drv_data->fbi->par;
struct mx3fb_data *mx3fb = platform_get_drvdata(pdev);
struct mx3fb_info *mx3_fbi = mx3fb->fbi->par;

if (mx3_fbi->blank == FB_BLANK_UNBLANK) {
sdc_enable_channel(mx3_fbi);
sdc_set_brightness(mx3fb, drv_data->backlight_level);
sdc_set_brightness(mx3fb, mx3fb->backlight_level);
}

acquire_console_sem();
fb_set_suspend(drv_data->fbi, 0);
fb_set_suspend(mx3fb->fbi, 0);
release_console_sem();

return 0;
Expand Down

0 comments on commit 63cb325

Please sign in to comment.