Thread (6 messages) 6 messages, 2 authors, 2016-12-30

[PATCH BlueZ 3/3] input/hog-lib: Attempt to read PNP values if not set

flat view
STALE3588d

From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Date: 2016-12-27 12:40:39
Subsystem: the rest · Maintainer: Linus Torvalds

From: Luiz Augusto von Dentz <redacted>

---
 profiles/input/hog-lib.c | 5 +++++
 1 file changed, 5 insertions(+)
diff --git a/profiles/input/hog-lib.c b/profiles/input/hog-lib.c
index 0f2f394..a159b17 100644
--- a/profiles/input/hog-lib.c
+++ b/profiles/input/hog-lib.c
@@ -1425,6 +1425,11 @@ struct bt_hog *bt_hog_new(int fd, const char *name, uint16_t vendor,
 			hog_free(hog);
 			return NULL;
 		}
+
+		/* Try creating a DIS instance in case pid/vid are not set */
+		if (!vendor && !product) {
+			hog->dis = bt_dis_new(db);
+		}
 	}
 
 	return bt_hog_ref(hog);
-- 
2.9.3
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help