lkml.org 
[lkml]   [2020]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.19 44/86] HID: alps: support devices with report id 2
    Date
    From: Caiyuan Xie <caiyuan.xie@cn.alps.com>

    [ Upstream commit aa3c439c144f0a465ed1f28f11c772886fb02b35 ]

    Add support for devices which that have reports with id == 2

    Signed-off-by: Caiyuan Xie <caiyuan.xie@cn.alps.com>
    Signed-off-by: Jiri Kosina <jkosina@suse.cz>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/hid/hid-alps.c | 2 ++
    1 file changed, 2 insertions(+)

    diff --git a/drivers/hid/hid-alps.c b/drivers/hid/hid-alps.c
    index 3489f0af7409c..f4cf541d13e08 100644
    --- a/drivers/hid/hid-alps.c
    +++ b/drivers/hid/hid-alps.c
    @@ -29,6 +29,7 @@

    #define U1_MOUSE_REPORT_ID 0x01 /* Mouse data ReportID */
    #define U1_ABSOLUTE_REPORT_ID 0x03 /* Absolute data ReportID */
    +#define U1_ABSOLUTE_REPORT_ID_SECD 0x02 /* FW-PTP Absolute data ReportID */
    #define U1_FEATURE_REPORT_ID 0x05 /* Feature ReportID */
    #define U1_SP_ABSOLUTE_REPORT_ID 0x06 /* Feature ReportID */

    @@ -372,6 +373,7 @@ static int u1_raw_event(struct alps_dev *hdata, u8 *data, int size)
    case U1_FEATURE_REPORT_ID:
    break;
    case U1_ABSOLUTE_REPORT_ID:
    + case U1_ABSOLUTE_REPORT_ID_SECD:
    for (i = 0; i < hdata->max_fingers; i++) {
    u8 *contact = &data[i * 5];

    --
    2.25.1


    \
     
     \ /
      Last update: 2020-07-27 16:11    [W:2.509 / U:0.028 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site