lkml.org 
[lkml]   [2022]   [Jun]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.15 303/667] HID: amd_sfh: Modify the bus name
    Date
    From: Basavaraj Natikar <Basavaraj.Natikar@amd.com>

    [ Upstream commit 206c3c2d85de8847fb732a5fb71443bacd287216 ]

    Modifying the amd-sfh bus name to meaningful name.

    Fixes: 4b2c53d93a4b ("SFH:Transport Driver to add support of AMD Sensor Fusion Hub (SFH)")
    Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
    Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
    Signed-off-by: Jiri Kosina <jkosina@suse.cz>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/hid/amd-sfh-hid/amd_sfh_hid.c | 2 +-
    drivers/hid/amd-sfh-hid/amd_sfh_hid.h | 2 +-
    2 files changed, 2 insertions(+), 2 deletions(-)

    diff --git a/drivers/hid/amd-sfh-hid/amd_sfh_hid.c b/drivers/hid/amd-sfh-hid/amd_sfh_hid.c
    index 5ad1e7acd294..8b8a7c40ed4e 100644
    --- a/drivers/hid/amd-sfh-hid/amd_sfh_hid.c
    +++ b/drivers/hid/amd-sfh-hid/amd_sfh_hid.c
    @@ -139,7 +139,7 @@ int amdtp_hid_probe(u32 cur_hid_dev, struct amdtp_cl_data *cli_data)

    hid->driver_data = hid_data;
    cli_data->hid_sensor_hubs[cur_hid_dev] = hid;
    - hid->bus = BUS_AMD_AMDTP;
    + hid->bus = BUS_AMD_SFH;
    hid->vendor = AMD_SFH_HID_VENDOR;
    hid->product = AMD_SFH_HID_PRODUCT;
    snprintf(hid->name, sizeof(hid->name), "%s %04X:%04X", "hid-amdtp",
    diff --git a/drivers/hid/amd-sfh-hid/amd_sfh_hid.h b/drivers/hid/amd-sfh-hid/amd_sfh_hid.h
    index ae2ac9191ba7..741cff350589 100644
    --- a/drivers/hid/amd-sfh-hid/amd_sfh_hid.h
    +++ b/drivers/hid/amd-sfh-hid/amd_sfh_hid.h
    @@ -10,7 +10,7 @@
    #define AMDSFH_HID_H

    #define MAX_HID_DEVICES 5
    -#define BUS_AMD_AMDTP 0x20
    +#define BUS_AMD_SFH 0x20
    #define AMD_SFH_HID_VENDOR 0x1022
    #define AMD_SFH_HID_PRODUCT 0x0001

    --
    2.35.1


    \
     
     \ /
      Last update: 2022-06-07 20:52    [W:4.057 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site