Blame SOURCES/0009-try-to-connect-input-devices-to-the-right-parent.patch

b58cad
From f6138333811f7f2bf01551c70f5726f7c556dd36 Mon Sep 17 00:00:00 2001
b58cad
From: Lyonel Vincent <lyonel@ezix.org>
b58cad
Date: Fri, 3 Apr 2020 22:42:21 +0200
b58cad
Subject: [PATCH 09/17] try to connect input devices to the right parent
b58cad
b58cad
---
b58cad
 src/core/input.cc | 6 ++++++
b58cad
 1 file changed, 6 insertions(+)
b58cad
b58cad
diff --git a/src/core/input.cc b/src/core/input.cc
b58cad
index a8d8eaf45cb3..ab37d37c3863 100644
b58cad
--- a/src/core/input.cc
b58cad
+++ b/src/core/input.cc
b58cad
@@ -52,6 +52,12 @@ bool scan_input(hwNode & n)
b58cad
     if(!e.hassubdir("id")) continue;
b58cad
 
b58cad
     hwNode *device = n.findChildByBusInfo(e.leaf().businfo());
b58cad
+    if(!device)
b58cad
+    {
b58cad
+      device = n.findChildByBusInfo(e.leaf().parent().businfo());
b58cad
+      if(device)
b58cad
+        device = device->addChild(hwNode("input", hw::input));
b58cad
+    }
b58cad
     if(!device)
b58cad
       device = n.addChild(hwNode("input", hw::input));
b58cad
     else
b58cad
-- 
b58cad
2.17.1
b58cad