diff options
Diffstat (limited to 'drivers/input/misc')
-rw-r--r-- | drivers/input/misc/ati_remote.c | 8 | ||||
-rw-r--r-- | drivers/input/misc/ati_remote2.c | 7 | ||||
-rw-r--r-- | drivers/input/misc/atlas_btns.c | 2 | ||||
-rw-r--r-- | drivers/input/misc/cobalt_btns.c | 2 | ||||
-rw-r--r-- | drivers/input/misc/ixp4xx-beeper.c | 4 | ||||
-rw-r--r-- | drivers/input/misc/keyspan_remote.c | 2 | ||||
-rw-r--r-- | drivers/input/misc/m68kspkr.c | 4 | ||||
-rw-r--r-- | drivers/input/misc/pcspkr.c | 4 | ||||
-rw-r--r-- | drivers/input/misc/powermate.c | 9 | ||||
-rw-r--r-- | drivers/input/misc/sparcspkr.c | 4 | ||||
-rw-r--r-- | drivers/input/misc/yealink.c | 2 |
11 files changed, 25 insertions, 23 deletions
diff --git a/drivers/input/misc/ati_remote.c b/drivers/input/misc/ati_remote.c index 471aab206443..3a7937481ad8 100644 --- a/drivers/input/misc/ati_remote.c +++ b/drivers/input/misc/ati_remote.c | |||
@@ -662,10 +662,10 @@ static void ati_remote_input_init(struct ati_remote *ati_remote) | |||
662 | struct input_dev *idev = ati_remote->idev; | 662 | struct input_dev *idev = ati_remote->idev; |
663 | int i; | 663 | int i; |
664 | 664 | ||
665 | idev->evbit[0] = BIT(EV_KEY) | BIT(EV_REL); | 665 | idev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REL); |
666 | idev->keybit[LONG(BTN_MOUSE)] = ( BIT(BTN_LEFT) | BIT(BTN_RIGHT) | | 666 | idev->keybit[BIT_WORD(BTN_MOUSE)] = BIT_MASK(BTN_LEFT) | |
667 | BIT(BTN_SIDE) | BIT(BTN_EXTRA) ); | 667 | BIT_MASK(BTN_RIGHT) | BIT_MASK(BTN_SIDE) | BIT_MASK(BTN_EXTRA); |
668 | idev->relbit[0] = BIT(REL_X) | BIT(REL_Y); | 668 | idev->relbit[0] = BIT_MASK(REL_X) | BIT_MASK(REL_Y); |
669 | for (i = 0; ati_remote_tbl[i].kind != KIND_END; i++) | 669 | for (i = 0; ati_remote_tbl[i].kind != KIND_END; i++) |
670 | if (ati_remote_tbl[i].type == EV_KEY) | 670 | if (ati_remote_tbl[i].type == EV_KEY) |
671 | set_bit(ati_remote_tbl[i].code, idev->keybit); | 671 | set_bit(ati_remote_tbl[i].code, idev->keybit); |
diff --git a/drivers/input/misc/ati_remote2.c b/drivers/input/misc/ati_remote2.c index 1031543e5c3f..f2709b82485c 100644 --- a/drivers/input/misc/ati_remote2.c +++ b/drivers/input/misc/ati_remote2.c | |||
@@ -346,9 +346,10 @@ static int ati_remote2_input_init(struct ati_remote2 *ar2) | |||
346 | ar2->idev = idev; | 346 | ar2->idev = idev; |
347 | input_set_drvdata(idev, ar2); | 347 | input_set_drvdata(idev, ar2); |
348 | 348 | ||
349 | idev->evbit[0] = BIT(EV_KEY) | BIT(EV_REP) | BIT(EV_REL); | 349 | idev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REP) | BIT_MASK(EV_REL); |
350 | idev->keybit[LONG(BTN_MOUSE)] = BIT(BTN_LEFT) | BIT(BTN_RIGHT); | 350 | idev->keybit[BIT_WORD(BTN_MOUSE)] = BIT_MASK(BTN_LEFT) | |
351 | idev->relbit[0] = BIT(REL_X) | BIT(REL_Y); | 351 | BIT_MASK(BTN_RIGHT); |
352 | idev->relbit[0] = BIT_MASK(REL_X) | BIT_MASK(REL_Y); | ||
352 | for (i = 0; ati_remote2_key_table[i].key_code != KEY_RESERVED; i++) | 353 | for (i = 0; ati_remote2_key_table[i].key_code != KEY_RESERVED; i++) |
353 | set_bit(ati_remote2_key_table[i].key_code, idev->keybit); | 354 | set_bit(ati_remote2_key_table[i].key_code, idev->keybit); |
354 | 355 | ||
diff --git a/drivers/input/misc/atlas_btns.c b/drivers/input/misc/atlas_btns.c index e43e92fd9e23..4e3ad657ed80 100644 --- a/drivers/input/misc/atlas_btns.c +++ b/drivers/input/misc/atlas_btns.c | |||
@@ -81,7 +81,7 @@ static int atlas_acpi_button_add(struct acpi_device *device) | |||
81 | input_dev->name = "Atlas ACPI button driver"; | 81 | input_dev->name = "Atlas ACPI button driver"; |
82 | input_dev->phys = "ASIM0000/atlas/input0"; | 82 | input_dev->phys = "ASIM0000/atlas/input0"; |
83 | input_dev->id.bustype = BUS_HOST; | 83 | input_dev->id.bustype = BUS_HOST; |
84 | input_dev->evbit[LONG(EV_KEY)] = BIT(EV_KEY); | 84 | input_dev->evbit[BIT_WORD(EV_KEY)] = BIT_MASK(EV_KEY); |
85 | 85 | ||
86 | set_bit(KEY_F1, input_dev->keybit); | 86 | set_bit(KEY_F1, input_dev->keybit); |
87 | set_bit(KEY_F2, input_dev->keybit); | 87 | set_bit(KEY_F2, input_dev->keybit); |
diff --git a/drivers/input/misc/cobalt_btns.c b/drivers/input/misc/cobalt_btns.c index 064b07936019..1aef97ed5e84 100644 --- a/drivers/input/misc/cobalt_btns.c +++ b/drivers/input/misc/cobalt_btns.c | |||
@@ -104,7 +104,7 @@ static int __devinit cobalt_buttons_probe(struct platform_device *pdev) | |||
104 | input->id.bustype = BUS_HOST; | 104 | input->id.bustype = BUS_HOST; |
105 | input->cdev.dev = &pdev->dev; | 105 | input->cdev.dev = &pdev->dev; |
106 | 106 | ||
107 | input->evbit[0] = BIT(EV_KEY); | 107 | input->evbit[0] = BIT_MASK(EV_KEY); |
108 | for (i = 0; i < ARRAY_SIZE(buttons_map); i++) { | 108 | for (i = 0; i < ARRAY_SIZE(buttons_map); i++) { |
109 | set_bit(buttons_map[i].keycode, input->keybit); | 109 | set_bit(buttons_map[i].keycode, input->keybit); |
110 | buttons_map[i].count = 0; | 110 | buttons_map[i].count = 0; |
diff --git a/drivers/input/misc/ixp4xx-beeper.c b/drivers/input/misc/ixp4xx-beeper.c index e759944041ab..d2ade7443b7d 100644 --- a/drivers/input/misc/ixp4xx-beeper.c +++ b/drivers/input/misc/ixp4xx-beeper.c | |||
@@ -109,8 +109,8 @@ static int __devinit ixp4xx_spkr_probe(struct platform_device *dev) | |||
109 | input_dev->id.version = 0x0100; | 109 | input_dev->id.version = 0x0100; |
110 | input_dev->dev.parent = &dev->dev; | 110 | input_dev->dev.parent = &dev->dev; |
111 | 111 | ||
112 | input_dev->evbit[0] = BIT(EV_SND); | 112 | input_dev->evbit[0] = BIT_MASK(EV_SND); |
113 | input_dev->sndbit[0] = BIT(SND_BELL) | BIT(SND_TONE); | 113 | input_dev->sndbit[0] = BIT_MASK(SND_BELL) | BIT_MASK(SND_TONE); |
114 | input_dev->event = ixp4xx_spkr_event; | 114 | input_dev->event = ixp4xx_spkr_event; |
115 | 115 | ||
116 | err = request_irq(IRQ_IXP4XX_TIMER2, &ixp4xx_spkr_interrupt, | 116 | err = request_irq(IRQ_IXP4XX_TIMER2, &ixp4xx_spkr_interrupt, |
diff --git a/drivers/input/misc/keyspan_remote.c b/drivers/input/misc/keyspan_remote.c index 1bffc9fa98c2..fd74347047dd 100644 --- a/drivers/input/misc/keyspan_remote.c +++ b/drivers/input/misc/keyspan_remote.c | |||
@@ -497,7 +497,7 @@ static int keyspan_probe(struct usb_interface *interface, const struct usb_devic | |||
497 | usb_to_input_id(udev, &input_dev->id); | 497 | usb_to_input_id(udev, &input_dev->id); |
498 | input_dev->dev.parent = &interface->dev; | 498 | input_dev->dev.parent = &interface->dev; |
499 | 499 | ||
500 | input_dev->evbit[0] = BIT(EV_KEY); /* We will only report KEY events. */ | 500 | input_dev->evbit[0] = BIT_MASK(EV_KEY); /* We will only report KEY events. */ |
501 | for (i = 0; i < ARRAY_SIZE(keyspan_key_table); i++) | 501 | for (i = 0; i < ARRAY_SIZE(keyspan_key_table); i++) |
502 | if (keyspan_key_table[i] != KEY_RESERVED) | 502 | if (keyspan_key_table[i] != KEY_RESERVED) |
503 | set_bit(keyspan_key_table[i], input_dev->keybit); | 503 | set_bit(keyspan_key_table[i], input_dev->keybit); |
diff --git a/drivers/input/misc/m68kspkr.c b/drivers/input/misc/m68kspkr.c index e9f26e766b4d..0c64d9bb718e 100644 --- a/drivers/input/misc/m68kspkr.c +++ b/drivers/input/misc/m68kspkr.c | |||
@@ -65,8 +65,8 @@ static int __devinit m68kspkr_probe(struct platform_device *dev) | |||
65 | input_dev->id.version = 0x0100; | 65 | input_dev->id.version = 0x0100; |
66 | input_dev->dev.parent = &dev->dev; | 66 | input_dev->dev.parent = &dev->dev; |
67 | 67 | ||
68 | input_dev->evbit[0] = BIT(EV_SND); | 68 | input_dev->evbit[0] = BIT_MASK(EV_SND); |
69 | input_dev->sndbit[0] = BIT(SND_BELL) | BIT(SND_TONE); | 69 | input_dev->sndbit[0] = BIT_MASK(SND_BELL) | BIT_MASK(SND_TONE); |
70 | input_dev->event = m68kspkr_event; | 70 | input_dev->event = m68kspkr_event; |
71 | 71 | ||
72 | err = input_register_device(input_dev); | 72 | err = input_register_device(input_dev); |
diff --git a/drivers/input/misc/pcspkr.c b/drivers/input/misc/pcspkr.c index c19f77fbaf2a..4941a9e61e90 100644 --- a/drivers/input/misc/pcspkr.c +++ b/drivers/input/misc/pcspkr.c | |||
@@ -86,8 +86,8 @@ static int __devinit pcspkr_probe(struct platform_device *dev) | |||
86 | pcspkr_dev->id.version = 0x0100; | 86 | pcspkr_dev->id.version = 0x0100; |
87 | pcspkr_dev->dev.parent = &dev->dev; | 87 | pcspkr_dev->dev.parent = &dev->dev; |
88 | 88 | ||
89 | pcspkr_dev->evbit[0] = BIT(EV_SND); | 89 | pcspkr_dev->evbit[0] = BIT_MASK(EV_SND); |
90 | pcspkr_dev->sndbit[0] = BIT(SND_BELL) | BIT(SND_TONE); | 90 | pcspkr_dev->sndbit[0] = BIT_MASK(SND_BELL) | BIT_MASK(SND_TONE); |
91 | pcspkr_dev->event = pcspkr_event; | 91 | pcspkr_dev->event = pcspkr_event; |
92 | 92 | ||
93 | err = input_register_device(pcspkr_dev); | 93 | err = input_register_device(pcspkr_dev); |
diff --git a/drivers/input/misc/powermate.c b/drivers/input/misc/powermate.c index 448a470d28f2..7a7b8c7b9633 100644 --- a/drivers/input/misc/powermate.c +++ b/drivers/input/misc/powermate.c | |||
@@ -363,10 +363,11 @@ static int powermate_probe(struct usb_interface *intf, const struct usb_device_i | |||
363 | 363 | ||
364 | input_dev->event = powermate_input_event; | 364 | input_dev->event = powermate_input_event; |
365 | 365 | ||
366 | input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_REL) | BIT(EV_MSC); | 366 | input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REL) | |
367 | input_dev->keybit[LONG(BTN_0)] = BIT(BTN_0); | 367 | BIT_MASK(EV_MSC); |
368 | input_dev->relbit[LONG(REL_DIAL)] = BIT(REL_DIAL); | 368 | input_dev->keybit[BIT_WORD(BTN_0)] = BIT_MASK(BTN_0); |
369 | input_dev->mscbit[LONG(MSC_PULSELED)] = BIT(MSC_PULSELED); | 369 | input_dev->relbit[BIT_WORD(REL_DIAL)] = BIT_MASK(REL_DIAL); |
370 | input_dev->mscbit[BIT_WORD(MSC_PULSELED)] = BIT_MASK(MSC_PULSELED); | ||
370 | 371 | ||
371 | /* get a handle to the interrupt data pipe */ | 372 | /* get a handle to the interrupt data pipe */ |
372 | pipe = usb_rcvintpipe(udev, endpoint->bEndpointAddress); | 373 | pipe = usb_rcvintpipe(udev, endpoint->bEndpointAddress); |
diff --git a/drivers/input/misc/sparcspkr.c b/drivers/input/misc/sparcspkr.c index e36ec1d92be8..a3637d870880 100644 --- a/drivers/input/misc/sparcspkr.c +++ b/drivers/input/misc/sparcspkr.c | |||
@@ -115,8 +115,8 @@ static int __devinit sparcspkr_probe(struct device *dev) | |||
115 | input_dev->id.version = 0x0100; | 115 | input_dev->id.version = 0x0100; |
116 | input_dev->dev.parent = dev; | 116 | input_dev->dev.parent = dev; |
117 | 117 | ||
118 | input_dev->evbit[0] = BIT(EV_SND); | 118 | input_dev->evbit[0] = BIT_MASK(EV_SND); |
119 | input_dev->sndbit[0] = BIT(SND_BELL) | BIT(SND_TONE); | 119 | input_dev->sndbit[0] = BIT_MASK(SND_BELL) | BIT_MASK(SND_TONE); |
120 | 120 | ||
121 | input_dev->event = state->event; | 121 | input_dev->event = state->event; |
122 | 122 | ||
diff --git a/drivers/input/misc/yealink.c b/drivers/input/misc/yealink.c index ab15880fd566..46279ef2b649 100644 --- a/drivers/input/misc/yealink.c +++ b/drivers/input/misc/yealink.c | |||
@@ -945,7 +945,7 @@ static int usb_probe(struct usb_interface *intf, const struct usb_device_id *id) | |||
945 | /* input_dev->event = input_ev; TODO */ | 945 | /* input_dev->event = input_ev; TODO */ |
946 | 946 | ||
947 | /* register available key events */ | 947 | /* register available key events */ |
948 | input_dev->evbit[0] = BIT(EV_KEY); | 948 | input_dev->evbit[0] = BIT_MASK(EV_KEY); |
949 | for (i = 0; i < 256; i++) { | 949 | for (i = 0; i < 256; i++) { |
950 | int k = map_p1k_to_key(i); | 950 | int k = map_p1k_to_key(i); |
951 | if (k >= 0) { | 951 | if (k >= 0) { |