diff mbox

HID: Make I2C a known bus in hid_connect()

Message ID 1442502142-21116-1-git-send-email-daniel.martin@secunet.com (mailing list archive)
State New, archived
Delegated to: Jiri Kosina
Headers show

Commit Message

Daniel Martin Sept. 17, 2015, 3:02 p.m. UTC
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(+)

Comments

Benjamin Tissoires Sept. 17, 2015, 8:30 p.m. UTC | #1
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
Jiri Kosina Sept. 23, 2015, 9:50 a.m. UTC | #2
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 mbox

Patch

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>";
 	}