linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] HID: Make I2C a known bus in hid_connect()
@ 2015-09-17 15:02 Daniel Martin
  2015-09-17 20:30 ` Benjamin Tissoires
  2015-09-23  9:50 ` Jiri Kosina
  0 siblings, 2 replies; 3+ messages in thread
From: Daniel Martin @ 2015-09-17 15:02 UTC (permalink / raw)
  To: linux-input; +Cc: Daniel Martin, Daniel Martin

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


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

* Re: [PATCH] HID: Make I2C a known bus in hid_connect()
  2015-09-17 15:02 [PATCH] HID: Make I2C a known bus in hid_connect() Daniel Martin
@ 2015-09-17 20:30 ` Benjamin Tissoires
  2015-09-23  9:50 ` Jiri Kosina
  1 sibling, 0 replies; 3+ messages in thread
From: Benjamin Tissoires @ 2015-09-17 20:30 UTC (permalink / raw)
  To: Daniel Martin, Jiri Kosina; +Cc: linux-input, Daniel Martin

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

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

* Re: [PATCH] HID: Make I2C a known bus in hid_connect()
  2015-09-17 15:02 [PATCH] HID: Make I2C a known bus in hid_connect() Daniel Martin
  2015-09-17 20:30 ` Benjamin Tissoires
@ 2015-09-23  9:50 ` Jiri Kosina
  1 sibling, 0 replies; 3+ messages in thread
From: Jiri Kosina @ 2015-09-23  9:50 UTC (permalink / raw)
  To: Daniel Martin; +Cc: linux-input, Daniel Martin

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.

-- 
Jiri Kosina
SUSE Labs


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

end of thread, other threads:[~2015-09-23  9:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-17 15:02 [PATCH] HID: Make I2C a known bus in hid_connect() Daniel Martin
2015-09-17 20:30 ` Benjamin Tissoires
2015-09-23  9:50 ` Jiri Kosina

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).