From: Daniel Martin <daniel.martin@secunet.com>
To: linux-input@vger.kernel.org
Cc: Daniel Martin <daniel.martin@secunet.com>,
Daniel Martin <consume.noise@gmail.com>
Subject: [PATCH] HID: Make I2C a known bus in hid_connect()
Date: Thu, 17 Sep 2015 17:02:22 +0200 [thread overview]
Message-ID: <1442502142-21116-1-git-send-email-daniel.martin@secunet.com> (raw)
Just to prettify the log message. Otherwise it would be <UNKNOWN>.
Signed-off-by: Daniel Martin <consume.noise@gmail.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 e6fce23..2636fac 100644
--- a/drivers/hid/hid-core.c
+++ b/drivers/hid/hid-core.c
@@ -1658,6 +1658,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.1.4
next reply other threads:[~2015-09-17 15:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-17 15:02 Daniel Martin [this message]
2015-09-17 20:30 ` [PATCH] HID: Make I2C a known bus in hid_connect() Benjamin Tissoires
2015-09-23 9:50 ` Jiri Kosina
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1442502142-21116-1-git-send-email-daniel.martin@secunet.com \
--to=daniel.martin@secunet.com \
--cc=consume.noise@gmail.com \
--cc=linux-input@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).