Merge tag 'v5.17-rc8' into next

Sync up with mainline to again get the latest changes in HID subsystem.
This commit is contained in:
Dmitry Torokhov
2022-03-14 19:14:29 -07:00
905 changed files with 9126 additions and 4436 deletions

View File

@@ -2318,6 +2318,12 @@ int input_register_device(struct input_dev *dev)
/* KEY_RESERVED is not supposed to be transmitted to userspace. */
__clear_bit(KEY_RESERVED, dev->keybit);
/* Buttonpads should not map BTN_RIGHT and/or BTN_MIDDLE. */
if (test_bit(INPUT_PROP_BUTTONPAD, dev->propbit)) {
__clear_bit(BTN_RIGHT, dev->keybit);
__clear_bit(BTN_MIDDLE, dev->keybit);
}
/* Make sure that bitmasks not mentioned in dev->evbit are clean. */
input_cleanse_bitmasks(dev);