Merge branch 'next' into for-linus
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 27 May 2022 22:48:45 +0000 (15:48 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 27 May 2022 22:48:45 +0000 (15:48 -0700)
Prepare input updates for 5.19 merge window.

1  2 
drivers/input/input.c

diff --combined drivers/input/input.c
@@@ -1793,8 -1793,6 +1793,6 @@@ EXPORT_SYMBOL(input_reset_device)
  
  static int input_inhibit_device(struct input_dev *dev)
  {
-       int ret = 0;
        mutex_lock(&dev->mutex);
  
        if (dev->inhibited)
  
  out:
        mutex_unlock(&dev->mutex);
-       return ret;
+       return 0;
  }
  
  static int input_uninhibit_device(struct input_dev *dev)
@@@ -2337,6 -2335,12 +2335,6 @@@ int input_register_device(struct input_
        /* 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);