Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 231033
b: refs/heads/master
c: c538ddb
h: refs/heads/master
i:
  231031: 273f81b
v: v3
  • Loading branch information
Mark Brown authored and Samuel Ortiz committed Jan 14, 2011
1 parent 296a230 commit 8512cc7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 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: 735a3d9efdc5aeebe201008e6655b235c7f02aeb
refs/heads/master: c538ddbe4fc70ef97af02d57abad34b246b19082
13 changes: 8 additions & 5 deletions trunk/drivers/mfd/wm831x-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ static int wm831x_i2c_remove(struct i2c_client *i2c)
return 0;
}

static int wm831x_i2c_suspend(struct i2c_client *i2c, pm_message_t mesg)
static int wm831x_i2c_suspend(struct device *dev)
{
struct wm831x *wm831x = i2c_get_clientdata(i2c);
struct wm831x *wm831x = dev_get_drvdata(dev);

return wm831x_device_suspend(wm831x);
}
Expand All @@ -113,15 +113,18 @@ static const struct i2c_device_id wm831x_i2c_id[] = {
};
MODULE_DEVICE_TABLE(i2c, wm831x_i2c_id);

static const struct dev_pm_ops wm831x_pm_ops = {
.suspend = wm831x_i2c_suspend,
};

static struct i2c_driver wm831x_i2c_driver = {
.driver = {
.name = "wm831x",
.owner = THIS_MODULE,
.name = "wm831x",
.owner = THIS_MODULE,
.pm = &wm831x_pm_ops,
},
.probe = wm831x_i2c_probe,
.remove = wm831x_i2c_remove,
.suspend = wm831x_i2c_suspend,
.id_table = wm831x_i2c_id,
};

Expand Down

0 comments on commit 8512cc7

Please sign in to comment.