diff options
Diffstat (limited to 'drivers/input/touchscreen/ad7879-i2c.c')
-rw-r--r-- | drivers/input/touchscreen/ad7879-i2c.c | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/drivers/input/touchscreen/ad7879-i2c.c b/drivers/input/touchscreen/ad7879-i2c.c index c789b974c795..c4b51170c951 100644 --- a/drivers/input/touchscreen/ad7879-i2c.c +++ b/drivers/input/touchscreen/ad7879-i2c.c | |||
@@ -16,30 +16,6 @@ | |||
16 | 16 | ||
17 | #define AD7879_DEVID 0x79 /* AD7879-1/AD7889-1 */ | 17 | #define AD7879_DEVID 0x79 /* AD7879-1/AD7889-1 */ |
18 | 18 | ||
19 | #ifdef CONFIG_PM_SLEEP | ||
20 | static int ad7879_i2c_suspend(struct device *dev) | ||
21 | { | ||
22 | struct i2c_client *client = to_i2c_client(dev); | ||
23 | struct ad7879 *ts = i2c_get_clientdata(client); | ||
24 | |||
25 | ad7879_suspend(ts); | ||
26 | |||
27 | return 0; | ||
28 | } | ||
29 | |||
30 | static int ad7879_i2c_resume(struct device *dev) | ||
31 | { | ||
32 | struct i2c_client *client = to_i2c_client(dev); | ||
33 | struct ad7879 *ts = i2c_get_clientdata(client); | ||
34 | |||
35 | ad7879_resume(ts); | ||
36 | |||
37 | return 0; | ||
38 | } | ||
39 | #endif | ||
40 | |||
41 | static SIMPLE_DEV_PM_OPS(ad7879_i2c_pm, ad7879_i2c_suspend, ad7879_i2c_resume); | ||
42 | |||
43 | /* All registers are word-sized. | 19 | /* All registers are word-sized. |
44 | * AD7879 uses a high-byte first convention. | 20 | * AD7879 uses a high-byte first convention. |
45 | */ | 21 | */ |
@@ -119,7 +95,7 @@ static struct i2c_driver ad7879_i2c_driver = { | |||
119 | .driver = { | 95 | .driver = { |
120 | .name = "ad7879", | 96 | .name = "ad7879", |
121 | .owner = THIS_MODULE, | 97 | .owner = THIS_MODULE, |
122 | .pm = &ad7879_i2c_pm, | 98 | .pm = &ad7879_pm_ops, |
123 | }, | 99 | }, |
124 | .probe = ad7879_i2c_probe, | 100 | .probe = ad7879_i2c_probe, |
125 | .remove = __devexit_p(ad7879_i2c_remove), | 101 | .remove = __devexit_p(ad7879_i2c_remove), |