Changed LONG(x) to BIT_WORD(x).
Signed-off-by: Eduardo Valentin <eduardo.valentin@indt.org.br>
Signed-off-by: Francisco Alecrim <francisco.alecrim@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
memset(hid, 0, sizeof(struct innovator_hid_dev));
hid->mouse = input_allocate_device();
hid->mouse->evbit[0] = BIT(EV_KEY) | BIT(EV_REL);
- hid->mouse->keybit[LONG(BTN_MOUSE)] =
+ hid->mouse->keybit[BIT_WORD(BTN_MOUSE)] =
BIT(BTN_LEFT) | BIT(BTN_RIGHT) |
BIT(BTN_MIDDLE) | BIT(BTN_TOUCH);
hid->mouse->relbit[0] = BIT(REL_X) | BIT(REL_Y);
ts_omap.inputdevice->name = OMAP_TS_NAME;
ts_omap.inputdevice->dev = &pdev->dev;
ts_omap.inputdevice->evbit[0] = BIT(EV_KEY) | BIT(EV_ABS);
- ts_omap.inputdevice->keybit[LONG(BTN_TOUCH)] |= BIT(BTN_TOUCH);
+ ts_omap.inputdevice->keybit[BIT_WORD(BTN_TOUCH)] |= BIT(BTN_TOUCH);
ts_omap.inputdevice->absbit[0] =
BIT(ABS_X) | BIT(ABS_Y) | BIT(ABS_PRESSURE);
input_register_device(ts_omap.inputdevice);