diff options
Diffstat (limited to 'drivers/char/sonypi.c')
-rw-r--r-- | drivers/char/sonypi.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/char/sonypi.c b/drivers/char/sonypi.c index 859858561ab6..877e53dcb996 100644 --- a/drivers/char/sonypi.c +++ b/drivers/char/sonypi.c | |||
@@ -7,7 +7,7 @@ | |||
7 | * | 7 | * |
8 | * Copyright (C) 2005 Narayanan R S <nars@kadamba.org> | 8 | * Copyright (C) 2005 Narayanan R S <nars@kadamba.org> |
9 | * | 9 | * |
10 | * Copyright (C) 2001-2002 Alc๔ve <www.alcove.com> | 10 | * Copyright (C) 2001-2002 Alcรดve <www.alcove.com> |
11 | * | 11 | * |
12 | * Copyright (C) 2001 Michael Ashley <m.ashley@unsw.edu.au> | 12 | * Copyright (C) 2001 Michael Ashley <m.ashley@unsw.edu.au> |
13 | * | 13 | * |
@@ -1178,9 +1178,9 @@ static int __devinit sonypi_create_input_devices(void) | |||
1178 | jog_dev->id.bustype = BUS_ISA; | 1178 | jog_dev->id.bustype = BUS_ISA; |
1179 | jog_dev->id.vendor = PCI_VENDOR_ID_SONY; | 1179 | jog_dev->id.vendor = PCI_VENDOR_ID_SONY; |
1180 | 1180 | ||
1181 | jog_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_REL); | 1181 | jog_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REL); |
1182 | jog_dev->keybit[LONG(BTN_MOUSE)] = BIT(BTN_MIDDLE); | 1182 | jog_dev->keybit[BIT_WORD(BTN_MOUSE)] = BIT_MASK(BTN_MIDDLE); |
1183 | jog_dev->relbit[0] = BIT(REL_WHEEL); | 1183 | jog_dev->relbit[0] = BIT_MASK(REL_WHEEL); |
1184 | 1184 | ||
1185 | sonypi_device.input_key_dev = key_dev = input_allocate_device(); | 1185 | sonypi_device.input_key_dev = key_dev = input_allocate_device(); |
1186 | if (!key_dev) { | 1186 | if (!key_dev) { |
@@ -1193,7 +1193,7 @@ static int __devinit sonypi_create_input_devices(void) | |||
1193 | key_dev->id.vendor = PCI_VENDOR_ID_SONY; | 1193 | key_dev->id.vendor = PCI_VENDOR_ID_SONY; |
1194 | 1194 | ||
1195 | /* Initialize the Input Drivers: special keys */ | 1195 | /* Initialize the Input Drivers: special keys */ |
1196 | key_dev->evbit[0] = BIT(EV_KEY); | 1196 | key_dev->evbit[0] = BIT_MASK(EV_KEY); |
1197 | for (i = 0; sonypi_inputkeys[i].sonypiev; i++) | 1197 | for (i = 0; sonypi_inputkeys[i].sonypiev; i++) |
1198 | if (sonypi_inputkeys[i].inputev) | 1198 | if (sonypi_inputkeys[i].inputev) |
1199 | set_bit(sonypi_inputkeys[i].inputev, key_dev->keybit); | 1199 | set_bit(sonypi_inputkeys[i].inputev, key_dev->keybit); |