Message ID | 1442502142-21116-1-git-send-email-daniel.martin@secunet.com (mailing list archive) |
---|---|
State | New, archived |
Delegated to: | Jiri Kosina |
Headers | show |
On Thu, Sep 17, 2015 at 11:02 AM, Daniel Martin <daniel.martin@secunet.com> wrote: > Just to prettify the log message. Otherwise it would be <UNKNOWN>. > > Signed-off-by: Daniel Martin <consume.noise@gmail.com> > --- Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.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 > > -- > 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 -- 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
On Thu, 17 Sep 2015, Daniel Martin wrote: > Just to prettify the log message. Otherwise it would be <UNKNOWN>. > > Signed-off-by: Daniel Martin <consume.noise@gmail.com> Applied to hid.git#for-4.4/upstream, thanks.
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>"; }
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(+)