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