diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2007-10-19 02:40:32 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-19 14:53:42 -0400 |
commit | 7b19ada2ed3c1eccb9fe94d74b05e1428224663d (patch) | |
tree | a0c5975ce5236ff4023b92d431bd0a8fa321c6ce /drivers/input/mouse | |
parent | d05be13bcc6ec615fb2e9556a9b85d52800669b6 (diff) |
get rid of input BIT* duplicate defines
get rid of input BIT* duplicate defines
use newly global defined macros for input layer. Also remove includes of
input.h from non-input sources only for BIT macro definiton. Define the
macro temporarily in local manner, all those local definitons will be
removed further in this patchset (to not break bisecting).
BIT macro will be globally defined (1<<x)
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: <dtor@mail.ru>
Acked-by: Jiri Kosina <jkosina@suse.cz>
Cc: <lenb@kernel.org>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Cc: <perex@suse.cz>
Acked-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: <vernux@us.ibm.com>
Cc: <malattia@linux.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/input/mouse')
-rw-r--r-- | drivers/input/mouse/alps.c | 26 | ||||
-rw-r--r-- | drivers/input/mouse/amimouse.c | 7 | ||||
-rw-r--r-- | drivers/input/mouse/atarimouse.c | 7 | ||||
-rw-r--r-- | drivers/input/mouse/hil_ptr.c | 6 | ||||
-rw-r--r-- | drivers/input/mouse/inport.c | 7 | ||||
-rw-r--r-- | drivers/input/mouse/lifebook.c | 11 | ||||
-rw-r--r-- | drivers/input/mouse/logibm.c | 7 | ||||
-rw-r--r-- | drivers/input/mouse/pc110pad.c | 6 | ||||
-rw-r--r-- | drivers/input/mouse/psmouse-base.c | 7 | ||||
-rw-r--r-- | drivers/input/mouse/rpcmouse.c | 7 | ||||
-rw-r--r-- | drivers/input/mouse/sermouse.c | 7 | ||||
-rw-r--r-- | drivers/input/mouse/touchkit_ps2.c | 2 |
12 files changed, 55 insertions, 45 deletions
diff --git a/drivers/input/mouse/alps.c b/drivers/input/mouse/alps.c index 64d70a9b714c..2b5ed119c9a9 100644 --- a/drivers/input/mouse/alps.c +++ b/drivers/input/mouse/alps.c | |||
@@ -455,24 +455,25 @@ int alps_init(struct psmouse *psmouse) | |||
455 | if (alps_hw_init(psmouse, &version)) | 455 | if (alps_hw_init(psmouse, &version)) |
456 | goto init_fail; | 456 | goto init_fail; |
457 | 457 | ||
458 | dev1->evbit[LONG(EV_KEY)] |= BIT(EV_KEY); | 458 | dev1->evbit[BIT_WORD(EV_KEY)] |= BIT_MASK(EV_KEY); |
459 | dev1->keybit[LONG(BTN_TOUCH)] |= BIT(BTN_TOUCH); | 459 | dev1->keybit[BIT_WORD(BTN_TOUCH)] |= BIT_MASK(BTN_TOUCH); |
460 | dev1->keybit[LONG(BTN_TOOL_FINGER)] |= BIT(BTN_TOOL_FINGER); | 460 | dev1->keybit[BIT_WORD(BTN_TOOL_FINGER)] |= BIT_MASK(BTN_TOOL_FINGER); |
461 | dev1->keybit[LONG(BTN_LEFT)] |= BIT(BTN_LEFT) | BIT(BTN_MIDDLE) | BIT(BTN_RIGHT); | 461 | dev1->keybit[BIT_WORD(BTN_LEFT)] |= BIT_MASK(BTN_LEFT) | |
462 | BIT_MASK(BTN_MIDDLE) | BIT_MASK(BTN_RIGHT); | ||
462 | 463 | ||
463 | dev1->evbit[LONG(EV_ABS)] |= BIT(EV_ABS); | 464 | dev1->evbit[BIT_WORD(EV_ABS)] |= BIT_MASK(EV_ABS); |
464 | input_set_abs_params(dev1, ABS_X, 0, 1023, 0, 0); | 465 | input_set_abs_params(dev1, ABS_X, 0, 1023, 0, 0); |
465 | input_set_abs_params(dev1, ABS_Y, 0, 767, 0, 0); | 466 | input_set_abs_params(dev1, ABS_Y, 0, 767, 0, 0); |
466 | input_set_abs_params(dev1, ABS_PRESSURE, 0, 127, 0, 0); | 467 | input_set_abs_params(dev1, ABS_PRESSURE, 0, 127, 0, 0); |
467 | 468 | ||
468 | if (priv->i->flags & ALPS_WHEEL) { | 469 | if (priv->i->flags & ALPS_WHEEL) { |
469 | dev1->evbit[LONG(EV_REL)] |= BIT(EV_REL); | 470 | dev1->evbit[BIT_WORD(EV_REL)] |= BIT_MASK(EV_REL); |
470 | dev1->relbit[LONG(REL_WHEEL)] |= BIT(REL_WHEEL); | 471 | dev1->relbit[BIT_WORD(REL_WHEEL)] |= BIT_MASK(REL_WHEEL); |
471 | } | 472 | } |
472 | 473 | ||
473 | if (priv->i->flags & (ALPS_FW_BK_1 | ALPS_FW_BK_2)) { | 474 | if (priv->i->flags & (ALPS_FW_BK_1 | ALPS_FW_BK_2)) { |
474 | dev1->keybit[LONG(BTN_FORWARD)] |= BIT(BTN_FORWARD); | 475 | dev1->keybit[BIT_WORD(BTN_FORWARD)] |= BIT_MASK(BTN_FORWARD); |
475 | dev1->keybit[LONG(BTN_BACK)] |= BIT(BTN_BACK); | 476 | dev1->keybit[BIT_WORD(BTN_BACK)] |= BIT_MASK(BTN_BACK); |
476 | } | 477 | } |
477 | 478 | ||
478 | snprintf(priv->phys, sizeof(priv->phys), "%s/input1", psmouse->ps2dev.serio->phys); | 479 | snprintf(priv->phys, sizeof(priv->phys), "%s/input1", psmouse->ps2dev.serio->phys); |
@@ -483,9 +484,10 @@ int alps_init(struct psmouse *psmouse) | |||
483 | dev2->id.product = PSMOUSE_ALPS; | 484 | dev2->id.product = PSMOUSE_ALPS; |
484 | dev2->id.version = 0x0000; | 485 | dev2->id.version = 0x0000; |
485 | 486 | ||
486 | dev2->evbit[0] = BIT(EV_KEY) | BIT(EV_REL); | 487 | dev2->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REL); |
487 | dev2->relbit[LONG(REL_X)] |= BIT(REL_X) | BIT(REL_Y); | 488 | dev2->relbit[BIT_WORD(REL_X)] |= BIT_MASK(REL_X) | BIT_MASK(REL_Y); |
488 | dev2->keybit[LONG(BTN_LEFT)] |= BIT(BTN_LEFT) | BIT(BTN_MIDDLE) | BIT(BTN_RIGHT); | 489 | dev2->keybit[BIT_WORD(BTN_LEFT)] |= BIT_MASK(BTN_LEFT) | |
490 | BIT_MASK(BTN_MIDDLE) | BIT_MASK(BTN_RIGHT); | ||
489 | 491 | ||
490 | if (input_register_device(priv->dev2)) | 492 | if (input_register_device(priv->dev2)) |
491 | goto init_fail; | 493 | goto init_fail; |
diff --git a/drivers/input/mouse/amimouse.c b/drivers/input/mouse/amimouse.c index 239a0e16d91a..a185ac78a42c 100644 --- a/drivers/input/mouse/amimouse.c +++ b/drivers/input/mouse/amimouse.c | |||
@@ -111,9 +111,10 @@ static int __init amimouse_init(void) | |||
111 | amimouse_dev->id.product = 0x0002; | 111 | amimouse_dev->id.product = 0x0002; |
112 | amimouse_dev->id.version = 0x0100; | 112 | amimouse_dev->id.version = 0x0100; |
113 | 113 | ||
114 | amimouse_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_REL); | 114 | amimouse_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REL); |
115 | amimouse_dev->relbit[0] = BIT(REL_X) | BIT(REL_Y); | 115 | amimouse_dev->relbit[0] = BIT_MASK(REL_X) | BIT_MASK(REL_Y); |
116 | amimouse_dev->keybit[LONG(BTN_LEFT)] = BIT(BTN_LEFT) | BIT(BTN_MIDDLE) | BIT(BTN_RIGHT); | 116 | amimouse_dev->keybit[BIT_WORD(BTN_LEFT)] = BIT_MASK(BTN_LEFT) | |
117 | BIT_MASK(BTN_MIDDLE) | BIT_MASK(BTN_RIGHT); | ||
117 | amimouse_dev->open = amimouse_open; | 118 | amimouse_dev->open = amimouse_open; |
118 | amimouse_dev->close = amimouse_close; | 119 | amimouse_dev->close = amimouse_close; |
119 | 120 | ||
diff --git a/drivers/input/mouse/atarimouse.c b/drivers/input/mouse/atarimouse.c index c8c7244b48a1..98a3561d4b05 100644 --- a/drivers/input/mouse/atarimouse.c +++ b/drivers/input/mouse/atarimouse.c | |||
@@ -137,9 +137,10 @@ static int __init atamouse_init(void) | |||
137 | atamouse_dev->id.product = 0x0002; | 137 | atamouse_dev->id.product = 0x0002; |
138 | atamouse_dev->id.version = 0x0100; | 138 | atamouse_dev->id.version = 0x0100; |
139 | 139 | ||
140 | atamouse_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_REL); | 140 | atamouse_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REL); |
141 | atamouse_dev->relbit[0] = BIT(REL_X) | BIT(REL_Y); | 141 | atamouse_dev->relbit[0] = BIT_MASK(REL_X) | BIT_MASK(REL_Y); |
142 | atamouse_dev->keybit[LONG(BTN_LEFT)] = BIT(BTN_LEFT) | BIT(BTN_MIDDLE) | BIT(BTN_RIGHT); | 142 | atamouse_dev->keybit[BIT_WORD(BTN_LEFT)] = BIT_MASK(BTN_LEFT) | |
143 | BIT_MASK(BTN_MIDDLE) | BIT_MASK(BTN_RIGHT); | ||
143 | atamouse_dev->open = atamouse_open; | 144 | atamouse_dev->open = atamouse_open; |
144 | atamouse_dev->close = atamouse_close; | 145 | atamouse_dev->close = atamouse_close; |
145 | 146 | ||
diff --git a/drivers/input/mouse/hil_ptr.c b/drivers/input/mouse/hil_ptr.c index 449bf4dcbbcc..27f88fbb7136 100644 --- a/drivers/input/mouse/hil_ptr.c +++ b/drivers/input/mouse/hil_ptr.c | |||
@@ -298,12 +298,12 @@ static int hil_ptr_connect(struct serio *serio, struct serio_driver *driver) | |||
298 | idd = ptr->idd + 1; | 298 | idd = ptr->idd + 1; |
299 | txt = "unknown"; | 299 | txt = "unknown"; |
300 | if ((did & HIL_IDD_DID_TYPE_MASK) == HIL_IDD_DID_TYPE_REL) { | 300 | if ((did & HIL_IDD_DID_TYPE_MASK) == HIL_IDD_DID_TYPE_REL) { |
301 | ptr->dev->evbit[0] = BIT(EV_REL); | 301 | ptr->dev->evbit[0] = BIT_MASK(EV_REL); |
302 | txt = "relative"; | 302 | txt = "relative"; |
303 | } | 303 | } |
304 | 304 | ||
305 | if ((did & HIL_IDD_DID_TYPE_MASK) == HIL_IDD_DID_TYPE_ABS) { | 305 | if ((did & HIL_IDD_DID_TYPE_MASK) == HIL_IDD_DID_TYPE_ABS) { |
306 | ptr->dev->evbit[0] = BIT(EV_ABS); | 306 | ptr->dev->evbit[0] = BIT_MASK(EV_ABS); |
307 | txt = "absolute"; | 307 | txt = "absolute"; |
308 | } | 308 | } |
309 | if (!ptr->dev->evbit[0]) | 309 | if (!ptr->dev->evbit[0]) |
@@ -311,7 +311,7 @@ static int hil_ptr_connect(struct serio *serio, struct serio_driver *driver) | |||
311 | 311 | ||
312 | ptr->nbtn = HIL_IDD_NUM_BUTTONS(idd); | 312 | ptr->nbtn = HIL_IDD_NUM_BUTTONS(idd); |
313 | if (ptr->nbtn) | 313 | if (ptr->nbtn) |
314 | ptr->dev->evbit[0] |= BIT(EV_KEY); | 314 | ptr->dev->evbit[0] |= BIT_MASK(EV_KEY); |
315 | 315 | ||
316 | naxsets = HIL_IDD_NUM_AXSETS(*idd); | 316 | naxsets = HIL_IDD_NUM_AXSETS(*idd); |
317 | ptr->naxes = HIL_IDD_NUM_AXES_PER_SET(*idd); | 317 | ptr->naxes = HIL_IDD_NUM_AXES_PER_SET(*idd); |
diff --git a/drivers/input/mouse/inport.c b/drivers/input/mouse/inport.c index 79b624fe8994..655a39217432 100644 --- a/drivers/input/mouse/inport.c +++ b/drivers/input/mouse/inport.c | |||
@@ -163,9 +163,10 @@ static int __init inport_init(void) | |||
163 | inport_dev->id.product = 0x0001; | 163 | inport_dev->id.product = 0x0001; |
164 | inport_dev->id.version = 0x0100; | 164 | inport_dev->id.version = 0x0100; |
165 | 165 | ||
166 | inport_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_REL); | 166 | inport_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REL); |
167 | inport_dev->keybit[LONG(BTN_LEFT)] = BIT(BTN_LEFT) | BIT(BTN_MIDDLE) | BIT(BTN_RIGHT); | 167 | inport_dev->keybit[BIT_WORD(BTN_LEFT)] = BIT_MASK(BTN_LEFT) | |
168 | inport_dev->relbit[0] = BIT(REL_X) | BIT(REL_Y); | 168 | BIT_MASK(BTN_MIDDLE) | BIT_MASK(BTN_RIGHT); |
169 | inport_dev->relbit[0] = BIT_MASK(REL_X) | BIT_MASK(REL_Y); | ||
169 | 170 | ||
170 | inport_dev->open = inport_open; | 171 | inport_dev->open = inport_open; |
171 | inport_dev->close = inport_close; | 172 | inport_dev->close = inport_close; |
diff --git a/drivers/input/mouse/lifebook.c b/drivers/input/mouse/lifebook.c index d7de4c53b3d8..9ec57d80186e 100644 --- a/drivers/input/mouse/lifebook.c +++ b/drivers/input/mouse/lifebook.c | |||
@@ -270,9 +270,10 @@ static int lifebook_create_relative_device(struct psmouse *psmouse) | |||
270 | dev2->id.version = 0x0000; | 270 | dev2->id.version = 0x0000; |
271 | dev2->dev.parent = &psmouse->ps2dev.serio->dev; | 271 | dev2->dev.parent = &psmouse->ps2dev.serio->dev; |
272 | 272 | ||
273 | dev2->evbit[0] = BIT(EV_KEY) | BIT(EV_REL); | 273 | dev2->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REL); |
274 | dev2->relbit[LONG(REL_X)] = BIT(REL_X) | BIT(REL_Y); | 274 | dev2->relbit[BIT_WORD(REL_X)] = BIT_MASK(REL_X) | BIT_MASK(REL_Y); |
275 | dev2->keybit[LONG(BTN_LEFT)] = BIT(BTN_LEFT) | BIT(BTN_RIGHT); | 275 | dev2->keybit[BIT_WORD(BTN_LEFT)] = BIT_MASK(BTN_LEFT) | |
276 | BIT_MASK(BTN_RIGHT); | ||
276 | 277 | ||
277 | error = input_register_device(priv->dev2); | 278 | error = input_register_device(priv->dev2); |
278 | if (error) | 279 | if (error) |
@@ -295,9 +296,9 @@ int lifebook_init(struct psmouse *psmouse) | |||
295 | if (lifebook_absolute_mode(psmouse)) | 296 | if (lifebook_absolute_mode(psmouse)) |
296 | return -1; | 297 | return -1; |
297 | 298 | ||
298 | dev1->evbit[0] = BIT(EV_ABS) | BIT(EV_KEY); | 299 | dev1->evbit[0] = BIT_MASK(EV_ABS) | BIT_MASK(EV_KEY); |
299 | dev1->relbit[0] = 0; | 300 | dev1->relbit[0] = 0; |
300 | dev1->keybit[LONG(BTN_TOUCH)] = BIT(BTN_TOUCH); | 301 | dev1->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH); |
301 | input_set_abs_params(dev1, ABS_X, 0, max_coord, 0, 0); | 302 | input_set_abs_params(dev1, ABS_X, 0, max_coord, 0, 0); |
302 | input_set_abs_params(dev1, ABS_Y, 0, max_coord, 0, 0); | 303 | input_set_abs_params(dev1, ABS_Y, 0, max_coord, 0, 0); |
303 | 304 | ||
diff --git a/drivers/input/mouse/logibm.c b/drivers/input/mouse/logibm.c index 26c3b2e2ca94..b23a4f3ea5cd 100644 --- a/drivers/input/mouse/logibm.c +++ b/drivers/input/mouse/logibm.c | |||
@@ -156,9 +156,10 @@ static int __init logibm_init(void) | |||
156 | logibm_dev->id.product = 0x0001; | 156 | logibm_dev->id.product = 0x0001; |
157 | logibm_dev->id.version = 0x0100; | 157 | logibm_dev->id.version = 0x0100; |
158 | 158 | ||
159 | logibm_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_REL); | 159 | logibm_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REL); |
160 | logibm_dev->keybit[LONG(BTN_LEFT)] = BIT(BTN_LEFT) | BIT(BTN_MIDDLE) | BIT(BTN_RIGHT); | 160 | logibm_dev->keybit[BIT_WORD(BTN_LEFT)] = BIT_MASK(BTN_LEFT) | |
161 | logibm_dev->relbit[0] = BIT(REL_X) | BIT(REL_Y); | 161 | BIT_MASK(BTN_MIDDLE) | BIT_MASK(BTN_RIGHT); |
162 | logibm_dev->relbit[0] = BIT_MASK(REL_X) | BIT_MASK(REL_Y); | ||
162 | 163 | ||
163 | logibm_dev->open = logibm_open; | 164 | logibm_dev->open = logibm_open; |
164 | logibm_dev->close = logibm_close; | 165 | logibm_dev->close = logibm_close; |
diff --git a/drivers/input/mouse/pc110pad.c b/drivers/input/mouse/pc110pad.c index 05d992e514f0..8991ab0b4fe3 100644 --- a/drivers/input/mouse/pc110pad.c +++ b/drivers/input/mouse/pc110pad.c | |||
@@ -144,9 +144,9 @@ static int __init pc110pad_init(void) | |||
144 | pc110pad_dev->id.product = 0x0001; | 144 | pc110pad_dev->id.product = 0x0001; |
145 | pc110pad_dev->id.version = 0x0100; | 145 | pc110pad_dev->id.version = 0x0100; |
146 | 146 | ||
147 | pc110pad_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_ABS); | 147 | pc110pad_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS); |
148 | pc110pad_dev->absbit[0] = BIT(ABS_X) | BIT(ABS_Y); | 148 | pc110pad_dev->absbit[0] = BIT_MASK(ABS_X) | BIT_MASK(ABS_Y); |
149 | pc110pad_dev->keybit[LONG(BTN_TOUCH)] = BIT(BTN_TOUCH); | 149 | pc110pad_dev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH); |
150 | 150 | ||
151 | pc110pad_dev->absmax[ABS_X] = 0x1ff; | 151 | pc110pad_dev->absmax[ABS_X] = 0x1ff; |
152 | pc110pad_dev->absmax[ABS_Y] = 0x0ff; | 152 | pc110pad_dev->absmax[ABS_Y] = 0x0ff; |
diff --git a/drivers/input/mouse/psmouse-base.c b/drivers/input/mouse/psmouse-base.c index 073525756532..da316d13d7f5 100644 --- a/drivers/input/mouse/psmouse-base.c +++ b/drivers/input/mouse/psmouse-base.c | |||
@@ -1115,9 +1115,10 @@ static int psmouse_switch_protocol(struct psmouse *psmouse, const struct psmouse | |||
1115 | 1115 | ||
1116 | input_dev->dev.parent = &psmouse->ps2dev.serio->dev; | 1116 | input_dev->dev.parent = &psmouse->ps2dev.serio->dev; |
1117 | 1117 | ||
1118 | input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_REL); | 1118 | input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REL); |
1119 | input_dev->keybit[LONG(BTN_MOUSE)] = BIT(BTN_LEFT) | BIT(BTN_MIDDLE) | BIT(BTN_RIGHT); | 1119 | input_dev->keybit[BIT_WORD(BTN_MOUSE)] = BIT_MASK(BTN_LEFT) | |
1120 | input_dev->relbit[0] = BIT(REL_X) | BIT(REL_Y); | 1120 | BIT_MASK(BTN_MIDDLE) | BIT_MASK(BTN_RIGHT); |
1121 | input_dev->relbit[0] = BIT_MASK(REL_X) | BIT_MASK(REL_Y); | ||
1121 | 1122 | ||
1122 | psmouse->set_rate = psmouse_set_rate; | 1123 | psmouse->set_rate = psmouse_set_rate; |
1123 | psmouse->set_resolution = psmouse_set_resolution; | 1124 | psmouse->set_resolution = psmouse_set_resolution; |
diff --git a/drivers/input/mouse/rpcmouse.c b/drivers/input/mouse/rpcmouse.c index 355efd0423e7..18a48636ba4a 100644 --- a/drivers/input/mouse/rpcmouse.c +++ b/drivers/input/mouse/rpcmouse.c | |||
@@ -78,9 +78,10 @@ static int __init rpcmouse_init(void) | |||
78 | rpcmouse_dev->id.product = 0x0001; | 78 | rpcmouse_dev->id.product = 0x0001; |
79 | rpcmouse_dev->id.version = 0x0100; | 79 | rpcmouse_dev->id.version = 0x0100; |
80 | 80 | ||
81 | rpcmouse_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_REL); | 81 | rpcmouse_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REL); |
82 | rpcmouse_dev->keybit[LONG(BTN_LEFT)] = BIT(BTN_LEFT) | BIT(BTN_MIDDLE) | BIT(BTN_RIGHT); | 82 | rpcmouse_dev->keybit[BIT_WORD(BTN_LEFT)] = BIT_MASK(BTN_LEFT) | |
83 | rpcmouse_dev->relbit[0] = BIT(REL_X) | BIT(REL_Y); | 83 | BIT_MASK(BTN_MIDDLE) | BIT_MASK(BTN_RIGHT); |
84 | rpcmouse_dev->relbit[0] = BIT_MASK(REL_X) | BIT_MASK(REL_Y); | ||
84 | 85 | ||
85 | rpcmouse_lastx = (short) iomd_readl(IOMD_MOUSEX); | 86 | rpcmouse_lastx = (short) iomd_readl(IOMD_MOUSEX); |
86 | rpcmouse_lasty = (short) iomd_readl(IOMD_MOUSEY); | 87 | rpcmouse_lasty = (short) iomd_readl(IOMD_MOUSEY); |
diff --git a/drivers/input/mouse/sermouse.c b/drivers/input/mouse/sermouse.c index 77b8ee2b9651..ed917bfd086a 100644 --- a/drivers/input/mouse/sermouse.c +++ b/drivers/input/mouse/sermouse.c | |||
@@ -268,9 +268,10 @@ static int sermouse_connect(struct serio *serio, struct serio_driver *drv) | |||
268 | input_dev->id.version = 0x0100; | 268 | input_dev->id.version = 0x0100; |
269 | input_dev->dev.parent = &serio->dev; | 269 | input_dev->dev.parent = &serio->dev; |
270 | 270 | ||
271 | input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_REL); | 271 | input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REL); |
272 | input_dev->keybit[LONG(BTN_MOUSE)] = BIT(BTN_LEFT) | BIT(BTN_RIGHT); | 272 | input_dev->keybit[BIT_WORD(BTN_MOUSE)] = BIT_MASK(BTN_LEFT) | |
273 | input_dev->relbit[0] = BIT(REL_X) | BIT(REL_Y); | 273 | BIT_MASK(BTN_RIGHT); |
274 | input_dev->relbit[0] = BIT_MASK(REL_X) | BIT_MASK(REL_Y); | ||
274 | 275 | ||
275 | if (c & 0x01) set_bit(BTN_MIDDLE, input_dev->keybit); | 276 | if (c & 0x01) set_bit(BTN_MIDDLE, input_dev->keybit); |
276 | if (c & 0x02) set_bit(BTN_SIDE, input_dev->keybit); | 277 | if (c & 0x02) set_bit(BTN_SIDE, input_dev->keybit); |
diff --git a/drivers/input/mouse/touchkit_ps2.c b/drivers/input/mouse/touchkit_ps2.c index 7b977fd23571..3fadb2accac0 100644 --- a/drivers/input/mouse/touchkit_ps2.c +++ b/drivers/input/mouse/touchkit_ps2.c | |||
@@ -85,7 +85,7 @@ int touchkit_ps2_detect(struct psmouse *psmouse, int set_properties) | |||
85 | return -ENODEV; | 85 | return -ENODEV; |
86 | 86 | ||
87 | if (set_properties) { | 87 | if (set_properties) { |
88 | dev->evbit[0] = BIT(EV_KEY) | BIT(EV_ABS); | 88 | dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS); |
89 | set_bit(BTN_TOUCH, dev->keybit); | 89 | set_bit(BTN_TOUCH, dev->keybit); |
90 | input_set_abs_params(dev, ABS_X, 0, TOUCHKIT_MAX_XC, 0, 0); | 90 | input_set_abs_params(dev, ABS_X, 0, TOUCHKIT_MAX_XC, 0, 0); |
91 | input_set_abs_params(dev, ABS_Y, 0, TOUCHKIT_MAX_YC, 0, 0); | 91 | input_set_abs_params(dev, ABS_Y, 0, TOUCHKIT_MAX_YC, 0, 0); |