HID: rmi: fallback to generic/multitouch if hid-rmi is not built
Changes
1 files changed · +2 −1
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| drivers/hid/hid-core.c | modified | +2 | −1 | View file |
drivers/hid/hid-core.c
View filediff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
index 538ff69..e9e87d3 100644
--- a/drivers/hid/hid-core.c
+++ b/drivers/hid/hid-core.c
@@ -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;
}