lkml.org 
[lkml]   [2021]   [Jun]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.9 03/71] HID: Add BUS_VIRTUAL to hid_connect logging
    Date
    From: Mark Bolhuis <mark@bolhuis.dev>

    [ Upstream commit 48e33befe61a7d407753c53d1a06fc8d6b5dab80 ]

    Add BUS_VIRTUAL to hid_connect logging since it's a valid hid bus type and it
    should not print <UNKNOWN>

    Signed-off-by: Mark Bolhuis <mark@bolhuis.dev>
    Signed-off-by: Jiri Kosina <jkosina@suse.cz>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    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 40b36e59a867..a056850328ef 100644
    --- a/drivers/hid/hid-core.c
    +++ b/drivers/hid/hid-core.c
    @@ -1804,6 +1804,9 @@ int hid_connect(struct hid_device *hdev, unsigned int connect_mask)
    case BUS_I2C:
    bus = "I2C";
    break;
    + case BUS_VIRTUAL:
    + bus = "VIRTUAL";
    + break;
    default:
    bus = "<UNKNOWN>";
    }
    --
    2.30.2
    \
     
     \ /
      Last update: 2021-06-28 17:16    [W:3.454 / U:0.056 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site