aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2009-05-08 21:29:27 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2009-05-08 21:29:27 -0400
commitd585a021c0b10b0477d6b608c53e1feb8cde0507 (patch)
tree5ca059da1db7f15d4b29427644ad9c08270c885c /drivers/input/touchscreen
parent84e5b0d00f8f84c4ae226be131d4bebbcee88bd3 (diff)
parent091bf7624d1c90cec9e578a18529f615213ff847 (diff)
Merge commit 'v2.6.30-rc5' into next
Diffstat (limited to 'drivers/input/touchscreen')
-rw-r--r--drivers/input/touchscreen/ads7846.c2
-rw-r--r--drivers/input/touchscreen/corgi_ts.c1
-rw-r--r--drivers/input/touchscreen/migor_ts.c23
-rw-r--r--drivers/input/touchscreen/tsc2007.c2
-rw-r--r--drivers/input/touchscreen/ucb1400_ts.c2
5 files changed, 26 insertions, 4 deletions
diff --git a/drivers/input/touchscreen/ads7846.c b/drivers/input/touchscreen/ads7846.c
index 8b6e30ac2919..2b01e56568f8 100644
--- a/drivers/input/touchscreen/ads7846.c
+++ b/drivers/input/touchscreen/ads7846.c
@@ -297,7 +297,7 @@ name ## _show(struct device *dev, struct device_attribute *attr, char *buf) \
297static DEVICE_ATTR(name, S_IRUGO, name ## _show, NULL); 297static DEVICE_ATTR(name, S_IRUGO, name ## _show, NULL);
298 298
299 299
300/* Sysfs conventions report temperatures in millidegrees Celcius. 300/* Sysfs conventions report temperatures in millidegrees Celsius.
301 * ADS7846 could use the low-accuracy two-sample scheme, but can't do the high 301 * ADS7846 could use the low-accuracy two-sample scheme, but can't do the high
302 * accuracy scheme without calibration data. For now we won't try either; 302 * accuracy scheme without calibration data. For now we won't try either;
303 * userspace sees raw sensor values, and must scale/calibrate appropriately. 303 * userspace sees raw sensor values, and must scale/calibrate appropriately.
diff --git a/drivers/input/touchscreen/corgi_ts.c b/drivers/input/touchscreen/corgi_ts.c
index 3fb51b54fe61..94a1919d439d 100644
--- a/drivers/input/touchscreen/corgi_ts.c
+++ b/drivers/input/touchscreen/corgi_ts.c
@@ -21,7 +21,6 @@
21 21
22#include <mach/sharpsl.h> 22#include <mach/sharpsl.h>
23#include <mach/hardware.h> 23#include <mach/hardware.h>
24#include <mach/pxa-regs.h>
25#include <mach/pxa2xx-gpio.h> 24#include <mach/pxa2xx-gpio.h>
26 25
27 26
diff --git a/drivers/input/touchscreen/migor_ts.c b/drivers/input/touchscreen/migor_ts.c
index 504ca11749a1..141dd584330e 100644
--- a/drivers/input/touchscreen/migor_ts.c
+++ b/drivers/input/touchscreen/migor_ts.c
@@ -198,6 +198,7 @@ static int migor_ts_probe(struct i2c_client *client,
198 goto err2; 198 goto err2;
199 } 199 }
200 200
201 device_init_wakeup(&client->dev, 1);
201 return 0; 202 return 0;
202 203
203 err2: 204 err2:
@@ -224,6 +225,26 @@ static int migor_ts_remove(struct i2c_client *client)
224 return 0; 225 return 0;
225} 226}
226 227
228static int migor_ts_suspend(struct i2c_client *client, pm_message_t mesg)
229{
230 struct migor_ts_priv *priv = dev_get_drvdata(&client->dev);
231
232 if (device_may_wakeup(&client->dev))
233 enable_irq_wake(priv->irq);
234
235 return 0;
236}
237
238static int migor_ts_resume(struct i2c_client *client)
239{
240 struct migor_ts_priv *priv = dev_get_drvdata(&client->dev);
241
242 if (device_may_wakeup(&client->dev))
243 disable_irq_wake(priv->irq);
244
245 return 0;
246}
247
227static const struct i2c_device_id migor_ts_id[] = { 248static const struct i2c_device_id migor_ts_id[] = {
228 { "migor_ts", 0 }, 249 { "migor_ts", 0 },
229 { } 250 { }
@@ -236,6 +257,8 @@ static struct i2c_driver migor_ts_driver = {
236 }, 257 },
237 .probe = migor_ts_probe, 258 .probe = migor_ts_probe,
238 .remove = migor_ts_remove, 259 .remove = migor_ts_remove,
260 .suspend = migor_ts_suspend,
261 .resume = migor_ts_resume,
239 .id_table = migor_ts_id, 262 .id_table = migor_ts_id,
240}; 263};
241 264
diff --git a/drivers/input/touchscreen/tsc2007.c b/drivers/input/touchscreen/tsc2007.c
index 4ab070246892..536668fbda22 100644
--- a/drivers/input/touchscreen/tsc2007.c
+++ b/drivers/input/touchscreen/tsc2007.c
@@ -235,7 +235,7 @@ static irqreturn_t tsc2007_irq(int irq, void *handle)
235 spin_lock_irqsave(&ts->lock, flags); 235 spin_lock_irqsave(&ts->lock, flags);
236 236
237 if (likely(ts->get_pendown_state())) { 237 if (likely(ts->get_pendown_state())) {
238 disable_irq(ts->irq); 238 disable_irq_nosync(ts->irq);
239 hrtimer_start(&ts->timer, ktime_set(0, TS_POLL_DELAY), 239 hrtimer_start(&ts->timer, ktime_set(0, TS_POLL_DELAY),
240 HRTIMER_MODE_REL); 240 HRTIMER_MODE_REL);
241 } 241 }
diff --git a/drivers/input/touchscreen/ucb1400_ts.c b/drivers/input/touchscreen/ucb1400_ts.c
index e868264fe799..f100c7f4c1db 100644
--- a/drivers/input/touchscreen/ucb1400_ts.c
+++ b/drivers/input/touchscreen/ucb1400_ts.c
@@ -256,7 +256,7 @@ static irqreturn_t ucb1400_hard_irq(int irqnr, void *devid)
256 struct ucb1400_ts *ucb = devid; 256 struct ucb1400_ts *ucb = devid;
257 257
258 if (irqnr == ucb->irq) { 258 if (irqnr == ucb->irq) {
259 disable_irq(ucb->irq); 259 disable_irq_nosync(ucb->irq);
260 ucb->irq_pending = 1; 260 ucb->irq_pending = 1;
261 wake_up(&ucb->ts_wait); 261 wake_up(&ucb->ts_wait);
262 return IRQ_HANDLED; 262 return IRQ_HANDLED;