diff options
Diffstat (limited to 'drivers/input/joydev.c')
-rw-r--r-- | drivers/input/joydev.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/input/joydev.c b/drivers/input/joydev.c index 2b201f9aa024..22b2789ef58a 100644 --- a/drivers/input/joydev.c +++ b/drivers/input/joydev.c | |||
@@ -844,8 +844,8 @@ static const struct input_device_id joydev_blacklist[] = { | |||
844 | { | 844 | { |
845 | .flags = INPUT_DEVICE_ID_MATCH_EVBIT | | 845 | .flags = INPUT_DEVICE_ID_MATCH_EVBIT | |
846 | INPUT_DEVICE_ID_MATCH_KEYBIT, | 846 | INPUT_DEVICE_ID_MATCH_KEYBIT, |
847 | .evbit = { BIT(EV_KEY) }, | 847 | .evbit = { BIT_MASK(EV_KEY) }, |
848 | .keybit = { [LONG(BTN_TOUCH)] = BIT(BTN_TOUCH) }, | 848 | .keybit = { [BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH) }, |
849 | }, /* Avoid itouchpads, touchscreens and tablets */ | 849 | }, /* Avoid itouchpads, touchscreens and tablets */ |
850 | { } /* Terminating entry */ | 850 | { } /* Terminating entry */ |
851 | }; | 851 | }; |
@@ -854,20 +854,20 @@ static const struct input_device_id joydev_ids[] = { | |||
854 | { | 854 | { |
855 | .flags = INPUT_DEVICE_ID_MATCH_EVBIT | | 855 | .flags = INPUT_DEVICE_ID_MATCH_EVBIT | |
856 | INPUT_DEVICE_ID_MATCH_ABSBIT, | 856 | INPUT_DEVICE_ID_MATCH_ABSBIT, |
857 | .evbit = { BIT(EV_ABS) }, | 857 | .evbit = { BIT_MASK(EV_ABS) }, |
858 | .absbit = { BIT(ABS_X) }, | 858 | .absbit = { BIT_MASK(ABS_X) }, |
859 | }, | 859 | }, |
860 | { | 860 | { |
861 | .flags = INPUT_DEVICE_ID_MATCH_EVBIT | | 861 | .flags = INPUT_DEVICE_ID_MATCH_EVBIT | |
862 | INPUT_DEVICE_ID_MATCH_ABSBIT, | 862 | INPUT_DEVICE_ID_MATCH_ABSBIT, |
863 | .evbit = { BIT(EV_ABS) }, | 863 | .evbit = { BIT_MASK(EV_ABS) }, |
864 | .absbit = { BIT(ABS_WHEEL) }, | 864 | .absbit = { BIT_MASK(ABS_WHEEL) }, |
865 | }, | 865 | }, |
866 | { | 866 | { |
867 | .flags = INPUT_DEVICE_ID_MATCH_EVBIT | | 867 | .flags = INPUT_DEVICE_ID_MATCH_EVBIT | |
868 | INPUT_DEVICE_ID_MATCH_ABSBIT, | 868 | INPUT_DEVICE_ID_MATCH_ABSBIT, |
869 | .evbit = { BIT(EV_ABS) }, | 869 | .evbit = { BIT_MASK(EV_ABS) }, |
870 | .absbit = { BIT(ABS_THROTTLE) }, | 870 | .absbit = { BIT_MASK(ABS_THROTTLE) }, |
871 | }, | 871 | }, |
872 | { } /* Terminating entry */ | 872 | { } /* Terminating entry */ |
873 | }; | 873 | }; |