Thread (3 messages) 3 messages, 3 authors, 2015-09-23

Re: [PATCH] HID: Make I2C a known bus in hid_connect()

flat view

From: Benjamin Tissoires <hidden>
Date: 2015-09-17 20:30:56

On Thu, Sep 17, 2015 at 11:02 AM, Daniel Martin
[off-list ref] wrote:
Just to prettify the log message. Otherwise it would be <UNKNOWN>.

Signed-off-by: Daniel Martin <redacted>
---
Reviewed-by: Benjamin Tissoires <redacted>
quoted hunk ↗ jump to hunk
 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

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help