diff options
Diffstat (limited to 'drivers/input/touchscreen')
-rw-r--r-- | drivers/input/touchscreen/ads7846.c | 8 | ||||
-rw-r--r-- | drivers/input/touchscreen/corgi_ts.c | 4 | ||||
-rw-r--r-- | drivers/input/touchscreen/elo.c | 4 | ||||
-rw-r--r-- | drivers/input/touchscreen/fujitsu_ts.c | 4 | ||||
-rw-r--r-- | drivers/input/touchscreen/gunze.c | 4 | ||||
-rw-r--r-- | drivers/input/touchscreen/h3600_ts_input.c | 5 | ||||
-rw-r--r-- | drivers/input/touchscreen/hp680_ts_input.c | 4 | ||||
-rw-r--r-- | drivers/input/touchscreen/mk712.c | 4 | ||||
-rw-r--r-- | drivers/input/touchscreen/mtouch.c | 4 | ||||
-rw-r--r-- | drivers/input/touchscreen/penmount.c | 4 | ||||
-rw-r--r-- | drivers/input/touchscreen/touchright.c | 4 | ||||
-rw-r--r-- | drivers/input/touchscreen/touchwin.c | 4 | ||||
-rw-r--r-- | drivers/input/touchscreen/ucb1400_ts.c | 5 | ||||
-rw-r--r-- | drivers/input/touchscreen/usbtouchscreen.c | 4 |
14 files changed, 31 insertions, 31 deletions
diff --git a/drivers/input/touchscreen/ads7846.c b/drivers/input/touchscreen/ads7846.c index 96581d08774f..f59aecf5ec15 100644 --- a/drivers/input/touchscreen/ads7846.c +++ b/drivers/input/touchscreen/ads7846.c | |||
@@ -83,7 +83,7 @@ struct ads7846 { | |||
83 | 83 | ||
84 | #if defined(CONFIG_HWMON) || defined(CONFIG_HWMON_MODULE) | 84 | #if defined(CONFIG_HWMON) || defined(CONFIG_HWMON_MODULE) |
85 | struct attribute_group *attr_group; | 85 | struct attribute_group *attr_group; |
86 | struct class_device *hwmon; | 86 | struct device *hwmon; |
87 | #endif | 87 | #endif |
88 | 88 | ||
89 | u16 model; | 89 | u16 model; |
@@ -369,7 +369,7 @@ static struct attribute_group ads7845_attr_group = { | |||
369 | 369 | ||
370 | static int ads784x_hwmon_register(struct spi_device *spi, struct ads7846 *ts) | 370 | static int ads784x_hwmon_register(struct spi_device *spi, struct ads7846 *ts) |
371 | { | 371 | { |
372 | struct class_device *hwmon; | 372 | struct device *hwmon; |
373 | int err; | 373 | int err; |
374 | 374 | ||
375 | /* hwmon sensors need a reference voltage */ | 375 | /* hwmon sensors need a reference voltage */ |
@@ -917,8 +917,8 @@ static int __devinit ads7846_probe(struct spi_device *spi) | |||
917 | input_dev->phys = ts->phys; | 917 | input_dev->phys = ts->phys; |
918 | input_dev->dev.parent = &spi->dev; | 918 | input_dev->dev.parent = &spi->dev; |
919 | 919 | ||
920 | input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_ABS); | 920 | input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS); |
921 | input_dev->keybit[LONG(BTN_TOUCH)] = BIT(BTN_TOUCH); | 921 | input_dev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH); |
922 | input_set_abs_params(input_dev, ABS_X, | 922 | input_set_abs_params(input_dev, ABS_X, |
923 | pdata->x_min ? : 0, | 923 | pdata->x_min ? : 0, |
924 | pdata->x_max ? : MAX_12BIT, | 924 | pdata->x_max ? : MAX_12BIT, |
diff --git a/drivers/input/touchscreen/corgi_ts.c b/drivers/input/touchscreen/corgi_ts.c index e6a31d118786..b1b2e07bf080 100644 --- a/drivers/input/touchscreen/corgi_ts.c +++ b/drivers/input/touchscreen/corgi_ts.c | |||
@@ -302,8 +302,8 @@ static int __init corgits_probe(struct platform_device *pdev) | |||
302 | input_dev->id.version = 0x0100; | 302 | input_dev->id.version = 0x0100; |
303 | input_dev->dev.parent = &pdev->dev; | 303 | input_dev->dev.parent = &pdev->dev; |
304 | 304 | ||
305 | input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_ABS); | 305 | input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS); |
306 | input_dev->keybit[LONG(BTN_TOUCH)] = BIT(BTN_TOUCH); | 306 | input_dev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH); |
307 | input_set_abs_params(input_dev, ABS_X, X_AXIS_MIN, X_AXIS_MAX, 0, 0); | 307 | input_set_abs_params(input_dev, ABS_X, X_AXIS_MIN, X_AXIS_MAX, 0, 0); |
308 | input_set_abs_params(input_dev, ABS_Y, Y_AXIS_MIN, Y_AXIS_MAX, 0, 0); | 308 | input_set_abs_params(input_dev, ABS_Y, Y_AXIS_MIN, Y_AXIS_MAX, 0, 0); |
309 | input_set_abs_params(input_dev, ABS_PRESSURE, PRESSURE_MIN, PRESSURE_MAX, 0, 0); | 309 | input_set_abs_params(input_dev, ABS_PRESSURE, PRESSURE_MIN, PRESSURE_MAX, 0, 0); |
diff --git a/drivers/input/touchscreen/elo.c b/drivers/input/touchscreen/elo.c index 557d781719f1..d20689cdbd5d 100644 --- a/drivers/input/touchscreen/elo.c +++ b/drivers/input/touchscreen/elo.c | |||
@@ -320,8 +320,8 @@ static int elo_connect(struct serio *serio, struct serio_driver *drv) | |||
320 | input_dev->id.version = 0x0100; | 320 | input_dev->id.version = 0x0100; |
321 | input_dev->dev.parent = &serio->dev; | 321 | input_dev->dev.parent = &serio->dev; |
322 | 322 | ||
323 | input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_ABS); | 323 | input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS); |
324 | input_dev->keybit[LONG(BTN_TOUCH)] = BIT(BTN_TOUCH); | 324 | input_dev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH); |
325 | 325 | ||
326 | serio_set_drvdata(serio, elo); | 326 | serio_set_drvdata(serio, elo); |
327 | err = serio_open(serio, drv); | 327 | err = serio_open(serio, drv); |
diff --git a/drivers/input/touchscreen/fujitsu_ts.c b/drivers/input/touchscreen/fujitsu_ts.c index daf7a4afc935..80b21800355f 100644 --- a/drivers/input/touchscreen/fujitsu_ts.c +++ b/drivers/input/touchscreen/fujitsu_ts.c | |||
@@ -122,8 +122,8 @@ static int fujitsu_connect(struct serio *serio, struct serio_driver *drv) | |||
122 | input_dev->id.vendor = SERIO_FUJITSU; | 122 | input_dev->id.vendor = SERIO_FUJITSU; |
123 | input_dev->id.product = 0; | 123 | input_dev->id.product = 0; |
124 | input_dev->id.version = 0x0100; | 124 | input_dev->id.version = 0x0100; |
125 | input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_ABS); | 125 | input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS); |
126 | input_dev->keybit[LONG(BTN_TOUCH)] = BIT(BTN_TOUCH); | 126 | input_dev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH); |
127 | 127 | ||
128 | input_set_abs_params(input_dev, ABS_X, 0, 4096, 0, 0); | 128 | input_set_abs_params(input_dev, ABS_X, 0, 4096, 0, 0); |
129 | input_set_abs_params(input_dev, ABS_Y, 0, 4096, 0, 0); | 129 | input_set_abs_params(input_dev, ABS_Y, 0, 4096, 0, 0); |
diff --git a/drivers/input/touchscreen/gunze.c b/drivers/input/touchscreen/gunze.c index 39d602600d7c..a48a15868c4a 100644 --- a/drivers/input/touchscreen/gunze.c +++ b/drivers/input/touchscreen/gunze.c | |||
@@ -137,8 +137,8 @@ static int gunze_connect(struct serio *serio, struct serio_driver *drv) | |||
137 | input_dev->id.product = 0x0051; | 137 | input_dev->id.product = 0x0051; |
138 | input_dev->id.version = 0x0100; | 138 | input_dev->id.version = 0x0100; |
139 | input_dev->dev.parent = &serio->dev; | 139 | input_dev->dev.parent = &serio->dev; |
140 | input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_ABS); | 140 | input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS); |
141 | input_dev->keybit[LONG(BTN_TOUCH)] = BIT(BTN_TOUCH); | 141 | input_dev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH); |
142 | input_set_abs_params(input_dev, ABS_X, 24, 1000, 0, 0); | 142 | input_set_abs_params(input_dev, ABS_X, 24, 1000, 0, 0); |
143 | input_set_abs_params(input_dev, ABS_Y, 24, 1000, 0, 0); | 143 | input_set_abs_params(input_dev, ABS_Y, 24, 1000, 0, 0); |
144 | 144 | ||
diff --git a/drivers/input/touchscreen/h3600_ts_input.c b/drivers/input/touchscreen/h3600_ts_input.c index 09ed7803cb8f..2ae6c6016a86 100644 --- a/drivers/input/touchscreen/h3600_ts_input.c +++ b/drivers/input/touchscreen/h3600_ts_input.c | |||
@@ -373,8 +373,9 @@ static int h3600ts_connect(struct serio *serio, struct serio_driver *drv) | |||
373 | 373 | ||
374 | input_dev->event = h3600ts_event; | 374 | input_dev->event = h3600ts_event; |
375 | 375 | ||
376 | input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_ABS) | BIT(EV_LED) | BIT(EV_PWR); | 376 | input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS) | |
377 | input_dev->ledbit[0] = BIT(LED_SLEEP); | 377 | BIT_MASK(EV_LED) | BIT_MASK(EV_PWR); |
378 | input_dev->ledbit[0] = BIT_MASK(LED_SLEEP); | ||
378 | input_set_abs_params(input_dev, ABS_X, 60, 985, 0, 0); | 379 | input_set_abs_params(input_dev, ABS_X, 60, 985, 0, 0); |
379 | input_set_abs_params(input_dev, ABS_Y, 35, 1024, 0, 0); | 380 | input_set_abs_params(input_dev, ABS_Y, 35, 1024, 0, 0); |
380 | 381 | ||
diff --git a/drivers/input/touchscreen/hp680_ts_input.c b/drivers/input/touchscreen/hp680_ts_input.c index 1a15475aedfc..c38d4e0f95c6 100644 --- a/drivers/input/touchscreen/hp680_ts_input.c +++ b/drivers/input/touchscreen/hp680_ts_input.c | |||
@@ -81,8 +81,8 @@ static int __init hp680_ts_init(void) | |||
81 | if (!hp680_ts_dev) | 81 | if (!hp680_ts_dev) |
82 | return -ENOMEM; | 82 | return -ENOMEM; |
83 | 83 | ||
84 | hp680_ts_dev->evbit[0] = BIT(EV_ABS) | BIT(EV_KEY); | 84 | hp680_ts_dev->evbit[0] = BIT_MASK(EV_ABS) | BIT_MASK(EV_KEY); |
85 | hp680_ts_dev->keybit[LONG(BTN_TOUCH)] = BIT(BTN_TOUCH); | 85 | hp680_ts_dev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH); |
86 | 86 | ||
87 | input_set_abs_params(hp680_ts_dev, ABS_X, | 87 | input_set_abs_params(hp680_ts_dev, ABS_X, |
88 | HP680_TS_ABS_X_MIN, HP680_TS_ABS_X_MAX, 0, 0); | 88 | HP680_TS_ABS_X_MIN, HP680_TS_ABS_X_MAX, 0, 0); |
diff --git a/drivers/input/touchscreen/mk712.c b/drivers/input/touchscreen/mk712.c index 44140feeffc5..80a658868706 100644 --- a/drivers/input/touchscreen/mk712.c +++ b/drivers/input/touchscreen/mk712.c | |||
@@ -186,8 +186,8 @@ static int __init mk712_init(void) | |||
186 | mk712_dev->open = mk712_open; | 186 | mk712_dev->open = mk712_open; |
187 | mk712_dev->close = mk712_close; | 187 | mk712_dev->close = mk712_close; |
188 | 188 | ||
189 | mk712_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_ABS); | 189 | mk712_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS); |
190 | mk712_dev->keybit[LONG(BTN_TOUCH)] = BIT(BTN_TOUCH); | 190 | mk712_dev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH); |
191 | input_set_abs_params(mk712_dev, ABS_X, 0, 0xfff, 88, 0); | 191 | input_set_abs_params(mk712_dev, ABS_X, 0, 0xfff, 88, 0); |
192 | input_set_abs_params(mk712_dev, ABS_Y, 0, 0xfff, 88, 0); | 192 | input_set_abs_params(mk712_dev, ABS_Y, 0, 0xfff, 88, 0); |
193 | 193 | ||
diff --git a/drivers/input/touchscreen/mtouch.c b/drivers/input/touchscreen/mtouch.c index 4ec3b1f940c8..9077228418b7 100644 --- a/drivers/input/touchscreen/mtouch.c +++ b/drivers/input/touchscreen/mtouch.c | |||
@@ -151,8 +151,8 @@ static int mtouch_connect(struct serio *serio, struct serio_driver *drv) | |||
151 | input_dev->id.product = 0; | 151 | input_dev->id.product = 0; |
152 | input_dev->id.version = 0x0100; | 152 | input_dev->id.version = 0x0100; |
153 | input_dev->dev.parent = &serio->dev; | 153 | input_dev->dev.parent = &serio->dev; |
154 | input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_ABS); | 154 | input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS); |
155 | input_dev->keybit[LONG(BTN_TOUCH)] = BIT(BTN_TOUCH); | 155 | input_dev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH); |
156 | input_set_abs_params(mtouch->dev, ABS_X, MTOUCH_MIN_XC, MTOUCH_MAX_XC, 0, 0); | 156 | input_set_abs_params(mtouch->dev, ABS_X, MTOUCH_MIN_XC, MTOUCH_MAX_XC, 0, 0); |
157 | input_set_abs_params(mtouch->dev, ABS_Y, MTOUCH_MIN_YC, MTOUCH_MAX_YC, 0, 0); | 157 | input_set_abs_params(mtouch->dev, ABS_Y, MTOUCH_MIN_YC, MTOUCH_MAX_YC, 0, 0); |
158 | 158 | ||
diff --git a/drivers/input/touchscreen/penmount.c b/drivers/input/touchscreen/penmount.c index f2c0d3c7149c..c7f9cebebbb6 100644 --- a/drivers/input/touchscreen/penmount.c +++ b/drivers/input/touchscreen/penmount.c | |||
@@ -113,8 +113,8 @@ static int pm_connect(struct serio *serio, struct serio_driver *drv) | |||
113 | input_dev->id.version = 0x0100; | 113 | input_dev->id.version = 0x0100; |
114 | input_dev->dev.parent = &serio->dev; | 114 | input_dev->dev.parent = &serio->dev; |
115 | 115 | ||
116 | input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_ABS); | 116 | input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS); |
117 | input_dev->keybit[LONG(BTN_TOUCH)] = BIT(BTN_TOUCH); | 117 | input_dev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH); |
118 | input_set_abs_params(pm->dev, ABS_X, 0, 0x3ff, 0, 0); | 118 | input_set_abs_params(pm->dev, ABS_X, 0, 0x3ff, 0, 0); |
119 | input_set_abs_params(pm->dev, ABS_Y, 0, 0x3ff, 0, 0); | 119 | input_set_abs_params(pm->dev, ABS_Y, 0, 0x3ff, 0, 0); |
120 | 120 | ||
diff --git a/drivers/input/touchscreen/touchright.c b/drivers/input/touchscreen/touchright.c index 3def7bb1df44..3a5c142c2a78 100644 --- a/drivers/input/touchscreen/touchright.c +++ b/drivers/input/touchscreen/touchright.c | |||
@@ -125,8 +125,8 @@ static int tr_connect(struct serio *serio, struct serio_driver *drv) | |||
125 | input_dev->id.product = 0; | 125 | input_dev->id.product = 0; |
126 | input_dev->id.version = 0x0100; | 126 | input_dev->id.version = 0x0100; |
127 | input_dev->dev.parent = &serio->dev; | 127 | input_dev->dev.parent = &serio->dev; |
128 | input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_ABS); | 128 | input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS); |
129 | input_dev->keybit[LONG(BTN_TOUCH)] = BIT(BTN_TOUCH); | 129 | input_dev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH); |
130 | input_set_abs_params(tr->dev, ABS_X, TR_MIN_XC, TR_MAX_XC, 0, 0); | 130 | input_set_abs_params(tr->dev, ABS_X, TR_MIN_XC, TR_MAX_XC, 0, 0); |
131 | input_set_abs_params(tr->dev, ABS_Y, TR_MIN_YC, TR_MAX_YC, 0, 0); | 131 | input_set_abs_params(tr->dev, ABS_Y, TR_MIN_YC, TR_MAX_YC, 0, 0); |
132 | 132 | ||
diff --git a/drivers/input/touchscreen/touchwin.c b/drivers/input/touchscreen/touchwin.c index ac4bdcf18666..763a656a59f8 100644 --- a/drivers/input/touchscreen/touchwin.c +++ b/drivers/input/touchscreen/touchwin.c | |||
@@ -132,8 +132,8 @@ static int tw_connect(struct serio *serio, struct serio_driver *drv) | |||
132 | input_dev->id.product = 0; | 132 | input_dev->id.product = 0; |
133 | input_dev->id.version = 0x0100; | 133 | input_dev->id.version = 0x0100; |
134 | input_dev->dev.parent = &serio->dev; | 134 | input_dev->dev.parent = &serio->dev; |
135 | input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_ABS); | 135 | input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS); |
136 | input_dev->keybit[LONG(BTN_TOUCH)] = BIT(BTN_TOUCH); | 136 | input_dev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH); |
137 | input_set_abs_params(tw->dev, ABS_X, TW_MIN_XC, TW_MAX_XC, 0, 0); | 137 | input_set_abs_params(tw->dev, ABS_X, TW_MIN_XC, TW_MAX_XC, 0, 0); |
138 | input_set_abs_params(tw->dev, ABS_Y, TW_MIN_YC, TW_MAX_YC, 0, 0); | 138 | input_set_abs_params(tw->dev, ABS_Y, TW_MIN_YC, TW_MAX_YC, 0, 0); |
139 | 139 | ||
diff --git a/drivers/input/touchscreen/ucb1400_ts.c b/drivers/input/touchscreen/ucb1400_ts.c index 86aed64ec0fb..7549939b9535 100644 --- a/drivers/input/touchscreen/ucb1400_ts.c +++ b/drivers/input/touchscreen/ucb1400_ts.c | |||
@@ -333,10 +333,9 @@ static int ucb1400_ts_thread(void *_ucb) | |||
333 | timeout = msecs_to_jiffies(10); | 333 | timeout = msecs_to_jiffies(10); |
334 | } | 334 | } |
335 | 335 | ||
336 | wait_event_interruptible_timeout(ucb->ts_wait, | 336 | wait_event_freezable_timeout(ucb->ts_wait, |
337 | ucb->irq_pending || ucb->ts_restart || kthread_should_stop(), | 337 | ucb->irq_pending || ucb->ts_restart || kthread_should_stop(), |
338 | timeout); | 338 | timeout); |
339 | try_to_freeze(); | ||
340 | } | 339 | } |
341 | 340 | ||
342 | /* Send the "pen off" if we are stopping with the pen still active */ | 341 | /* Send the "pen off" if we are stopping with the pen still active */ |
@@ -518,7 +517,7 @@ static int ucb1400_ts_probe(struct device *dev) | |||
518 | idev->id.product = id; | 517 | idev->id.product = id; |
519 | idev->open = ucb1400_ts_open; | 518 | idev->open = ucb1400_ts_open; |
520 | idev->close = ucb1400_ts_close; | 519 | idev->close = ucb1400_ts_close; |
521 | idev->evbit[0] = BIT(EV_ABS); | 520 | idev->evbit[0] = BIT_MASK(EV_ABS); |
522 | 521 | ||
523 | ucb1400_adc_enable(ucb); | 522 | ucb1400_adc_enable(ucb); |
524 | x_res = ucb1400_ts_read_xres(ucb); | 523 | x_res = ucb1400_ts_read_xres(ucb); |
diff --git a/drivers/input/touchscreen/usbtouchscreen.c b/drivers/input/touchscreen/usbtouchscreen.c index f7d4a3b1ee7b..19055e7381f8 100644 --- a/drivers/input/touchscreen/usbtouchscreen.c +++ b/drivers/input/touchscreen/usbtouchscreen.c | |||
@@ -900,8 +900,8 @@ static int usbtouch_probe(struct usb_interface *intf, | |||
900 | input_dev->open = usbtouch_open; | 900 | input_dev->open = usbtouch_open; |
901 | input_dev->close = usbtouch_close; | 901 | input_dev->close = usbtouch_close; |
902 | 902 | ||
903 | input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_ABS); | 903 | input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS); |
904 | input_dev->keybit[LONG(BTN_TOUCH)] = BIT(BTN_TOUCH); | 904 | input_dev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH); |
905 | input_set_abs_params(input_dev, ABS_X, type->min_xc, type->max_xc, 0, 0); | 905 | input_set_abs_params(input_dev, ABS_X, type->min_xc, type->max_xc, 0, 0); |
906 | input_set_abs_params(input_dev, ABS_Y, type->min_yc, type->max_yc, 0, 0); | 906 | input_set_abs_params(input_dev, ABS_Y, type->min_yc, type->max_yc, 0, 0); |
907 | if (type->max_press) | 907 | if (type->max_press) |