Commit 073e5bbf authored by Eduardo Valentin's avatar Eduardo Valentin Committed by Tony Lindgren

Compile fix on innovator_ps2.c and omap_ts.c

Changed LONG(x) to BIT_WORD(x).
Signed-off-by: default avatarEduardo Valentin <eduardo.valentin@indt.org.br>
Signed-off-by: default avatarFrancisco Alecrim <francisco.alecrim@indt.org.br>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent af3821c7
......@@ -1214,7 +1214,7 @@ innovator_kbd_init(void)
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);
......
......@@ -177,7 +177,7 @@ static int __init omap_ts_probe(struct platform_device *pdev)
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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment