Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 269494
b: refs/heads/master
c: d4f4158
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Torokhov committed Oct 7, 2011
1 parent 42363d8 commit b9190a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: 26e56eb2bfccdd6bcec0c298d40e12e3daea0188
refs/heads/master: d4f4158dcda2f75ba8024e540d0bba070af1e67a
6 changes: 2 additions & 4 deletions trunk/drivers/input/touchscreen/ad7879-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#define AD7879_DEVID 0x79 /* AD7879-1/AD7889-1 */

#ifdef CONFIG_PM
#ifdef CONFIG_PM_SLEEP
static int ad7879_i2c_suspend(struct device *dev)
{
struct i2c_client *client = to_i2c_client(dev);
Expand All @@ -36,9 +36,9 @@ static int ad7879_i2c_resume(struct device *dev)

return 0;
}
#endif

static SIMPLE_DEV_PM_OPS(ad7879_i2c_pm, ad7879_i2c_suspend, ad7879_i2c_resume);
#endif

/* All registers are word-sized.
* AD7879 uses a high-byte first convention.
Expand Down Expand Up @@ -119,9 +119,7 @@ static struct i2c_driver ad7879_i2c_driver = {
.driver = {
.name = "ad7879",
.owner = THIS_MODULE,
#ifdef CONFIG_PM
.pm = &ad7879_i2c_pm,
#endif
},
.probe = ad7879_i2c_probe,
.remove = __devexit_p(ad7879_i2c_remove),
Expand Down

0 comments on commit b9190a3

Please sign in to comment.