Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 365640
b: refs/heads/master
c: 5a3778e
h: refs/heads/master
v: v3
  • Loading branch information
Jingoo Han authored and Linus Torvalds committed Apr 30, 2013
1 parent eaca5f8 commit b6577f8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 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: b079296259c0680b6ad431d611295711576f5ac8
refs/heads/master: 5a3778e2f57e5fb1f6e060586f5850dd87b5320f
16 changes: 7 additions & 9 deletions trunk/drivers/video/backlight/locomolcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,25 +157,24 @@ static const struct backlight_ops locomobl_data = {
.update_status = locomolcd_set_intensity,
};

#ifdef CONFIG_PM
static int locomolcd_suspend(struct locomo_dev *dev, pm_message_t state)
#ifdef CONFIG_PM_SLEEP
static int locomolcd_suspend(struct device *dev)
{
locomolcd_flags |= LOCOMOLCD_SUSPENDED;
locomolcd_set_intensity(locomolcd_bl_device);
return 0;
}

static int locomolcd_resume(struct locomo_dev *dev)
static int locomolcd_resume(struct device *dev)
{
locomolcd_flags &= ~LOCOMOLCD_SUSPENDED;
locomolcd_set_intensity(locomolcd_bl_device);
return 0;
}
#else
#define locomolcd_suspend NULL
#define locomolcd_resume NULL
#endif

static SIMPLE_DEV_PM_OPS(locomolcd_pm_ops, locomolcd_suspend, locomolcd_resume);

static int locomolcd_probe(struct locomo_dev *ldev)
{
struct backlight_properties props;
Expand Down Expand Up @@ -230,13 +229,12 @@ static int locomolcd_remove(struct locomo_dev *dev)

static struct locomo_driver poodle_lcd_driver = {
.drv = {
.name = "locomo-backlight",
.name = "locomo-backlight",
.pm = &locomolcd_pm_ops,
},
.devid = LOCOMO_DEVID_BACKLIGHT,
.probe = locomolcd_probe,
.remove = locomolcd_remove,
.suspend = locomolcd_suspend,
.resume = locomolcd_resume,
};

static int __init locomolcd_init(void)
Expand Down

0 comments on commit b6577f8

Please sign in to comment.