linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] HID: Show I2C bus type in hid_connect()
@ 2015-09-28 12:15 Mika Westerberg
  2015-09-28 12:15 ` [PATCH 2/2] HID: i2c-hid: Fill in physical device providing HID functionality Mika Westerberg
  2015-09-29  6:35 ` [PATCH 1/2] HID: Show I2C bus type in hid_connect() Daniel Martin
  0 siblings, 2 replies; 6+ messages in thread
From: Mika Westerberg @ 2015-09-28 12:15 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: Benjamin Tissoires, Mika Westerberg, linux-input

For I2C HID devices output currently looks like:

  hid-multitouch ... input,hidraw0: <UNKNOWN> HID v1.00 Mouse ...

Add knowledge about I2C bus to hid_connect() so that it shows "I2C"
correctly instead of "<UNKNOWN>".

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
---
 drivers/hid/hid-core.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
index 70a11ac38119..7f1baba081a1 100644
--- a/drivers/hid/hid-core.c
+++ b/drivers/hid/hid-core.c
@@ -1678,6 +1678,9 @@ int hid_connect(struct hid_device *hdev, unsigned int connect_mask)
 	case BUS_BLUETOOTH:
 		bus = "BLUETOOTH";
 		break;
+	case BUS_I2C:
+		bus = "I2C";
+		break;
 	default:
 		bus = "<UNKNOWN>";
 	}
-- 
2.5.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-09-29 10:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-28 12:15 [PATCH 1/2] HID: Show I2C bus type in hid_connect() Mika Westerberg
2015-09-28 12:15 ` [PATCH 2/2] HID: i2c-hid: Fill in physical device providing HID functionality Mika Westerberg
2015-09-29  6:40   ` Daniel Martin
2015-09-29  9:06   ` Benjamin Tissoires
2015-09-29 10:07   ` Jiri Kosina
2015-09-29  6:35 ` [PATCH 1/2] HID: Show I2C bus type in hid_connect() Daniel Martin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).