Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 22 Feb 2017 01:28:25 +0000 (17:28 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 22 Feb 2017 01:28:25 +0000 (17:28 -0800)
Pull HID fix from Jiri Kosina:
 "Regression fix for HID_RMI-driven synaptics touchpads in
  !CONFIG_HID_RMI cases"

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid:
  HID: rmi: fallback to generic/multitouch if hid-rmi is not built

drivers/hid/hid-core.c

index 538ff697a4cfe28bb27a8c1c7e87391c7d894415..e9e87d337446918f672771551f41041755d83d22 100644 (file)
@@ -827,7 +827,8 @@ static int hid_scan_report(struct hid_device *hid)
                                 * hid-rmi should take care of them,
                                 * not hid-generic
                                 */
-                               hid->group = HID_GROUP_RMI;
+                               if (IS_ENABLED(CONFIG_HID_RMI))
+                                       hid->group = HID_GROUP_RMI;
                break;
        }