diff options
Diffstat (limited to 'drivers/input/misc/ati_remote2.c')
-rw-r--r-- | drivers/input/misc/ati_remote2.c | 7 |
1 files changed, 4 insertions, 3 deletions
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 | ||