Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1075792ybz; Thu, 16 Apr 2020 02:19:39 -0700 (PDT) X-Google-Smtp-Source: APiQypLMGKSeJpRB7o0W3iKl5Cws9Am/NmMfa2X9a4jRJnJHwdlLI+ffmojjq4l+qiwOdxEBWeLT X-Received: by 2002:a17:906:4353:: with SMTP id z19mr8817086ejm.363.1587028779284; Thu, 16 Apr 2020 02:19:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1587028779; cv=pass; d=google.com; s=arc-20160816; b=r3m8IVXULGboyJsJGJX/bCdbL8nX67i/A5yiJ4P/1/0G6rk1jULwHLDtF5UEDdoou/ TVEvG6tNDkzKEVaJ8wz1Mi7cpQutvz1k5/aosQ0hBF+61LjdtOdZfGuM6ongohUq72Nw 842o+9gtFPB/07g+Hnr5tigKNv4Cd685rE+IV9RI1DuRcIFdItDYByKtK5c6DQwht/25 4O+b5TBqr21yRe+bn2kAVgLM5b4qljghrRNj+mJHmIluHOoTLo61SItWl9K53x5bZ+MW wAO57nnbVp1dPviYUjNLQa3+YN8scPTv2jx4cgAsvQ6jTdESvefaDESunjGxFc6vKr1H m0cg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=1hCRFqVdfos9yLvg8DZ97Gjnh5LBlBbmpJxasQfKEcw=; b=v1k77kBT8ccLSz+/JwPmwuLUc2emsjnkvCJjHF+VhELU1E3pRXYW54IG+pjSRnDINM PE7NRruPgcbqtL4szE3cUcN/1kkMviB3G+RJO1cAXLzzXn16qh72yYB4gQppLu7EfJXO Uyfq1FpBi5PF3JX9VyH7zd+xjD5SGbb+vudEvRI256qPmkHzWW28OqPSuCZYU60fZHm1 Bcl1eUINxM8s2rtwWmS92+r9WB/FfjUzRT9Ky5h1cm+gx5L8wWJjuxfh/RSc1oYAQnZn CQYe/HC6SMgaV3CnImJDfl2UmtZTiVumf0W66kRydwrPo0WNx48b33y7ar4L9KCcW94b dKQA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alpsgroup.onmicrosoft.com header.s=selector2-alpsgroup-onmicrosoft-com header.b=PMltS0WW; arc=pass (i=1 spf=pass spfdomain=cn.alps.com dkim=pass dkdomain=cn.alps.com dmarc=pass fromdomain=cn.alps.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ox16si4892904ejb.427.2020.04.16.02.19.16; Thu, 16 Apr 2020 02:19:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alpsgroup.onmicrosoft.com header.s=selector2-alpsgroup-onmicrosoft-com header.b=PMltS0WW; arc=pass (i=1 spf=pass spfdomain=cn.alps.com dkim=pass dkdomain=cn.alps.com dmarc=pass fromdomain=cn.alps.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2503499AbgDPJPd (ORCPT + 99 others); Thu, 16 Apr 2020 05:15:33 -0400 Received: from mail-eopbgr1410080.outbound.protection.outlook.com ([40.107.141.80]:31136 "EHLO JPN01-OS2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2440874AbgDPIKs (ORCPT ); Thu, 16 Apr 2020 04:10:48 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nGKHJjEEs51EkHBybOoY5bhdOMlAsQo4Die2RtJyX/tkokX+DnPAUtdXrV/DIiAg/Fs0s4iVbAEeDPzIVnS/MpUROzYfqOpRgLSVGwBfcGldbdusKmyMFsr1NwigqqOo9d8mgoAwbi5U8hzNghkaG6b0a9X+KSfBZHORquO0YUQ8qzwD/kpQk0f/1V+pBI8//4067ssg8IF+UYPl8D4IMZ6qVVdXcYn56EW22Zne4XLvf5vZv5URkP/3XfaZa8E4q9OpPB6ikJXEftCSMMeU+XtYEFmO+27ej9pCa+DXVHSjIPCEH5C/OJj8U/IIlRjUjaTmBxsZhfGZ768MhdMUaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1hCRFqVdfos9yLvg8DZ97Gjnh5LBlBbmpJxasQfKEcw=; b=ck592m/H2pAwnAw97cVPiqqLseq75rS4xGmOEj+UIpLmJvZpsS6bPdnIfUw9BT6pCPsBoRvL0RIzoP5OsdXWEjh4pQJivorGWF0qtSCbBERqsvIPbDP0TEK3Ikhw6PXDRkHVdCZGy2sb6TK2P2nRNKcHZS4kHPfKoRpaTwXBFV9J10wU4M0l4WtpmTazBrqE6NCeigVOr9sYFrGE6yOsBnLFdXLxQ3pjH4amzCPYZd4mIYivwDOvxPl4iTEeD60IKyx9+KJ19v3xhnHCntIaa4jYQb6iIz0TbUAUV2gFXBy6E7dZULtJk1eNxoy0bfroaOdKhUEXBGmDkfy+nWBfIg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cn.alps.com; dmarc=pass action=none header.from=cn.alps.com; dkim=pass header.d=cn.alps.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alpsgroup.onmicrosoft.com; s=selector2-alpsgroup-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1hCRFqVdfos9yLvg8DZ97Gjnh5LBlBbmpJxasQfKEcw=; b=PMltS0WWqZdrt5FOizuAnOIgdgDHiDz5Aj/EIAedLNVHbyrFTJro6/vqP425gLDTKQSHf9reFdrwwUcLXBBCeZBaFyZ3C3TYKV/r/6p0D4k797fZIS88d0/wNWMm2PKsKw50GeNsfYeEssunG4kZ7h99zldWVG9lagpsSaV4Y4A= Received: from OSAPR01MB3057.jpnprd01.prod.outlook.com (52.134.248.141) by OSAPR01MB3921.jpnprd01.prod.outlook.com (20.178.103.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2900.24; Thu, 16 Apr 2020 08:10:11 +0000 Received: from OSAPR01MB3057.jpnprd01.prod.outlook.com ([fe80::c41b:4bf7:2ad1:6fc7]) by OSAPR01MB3057.jpnprd01.prod.outlook.com ([fe80::c41b:4bf7:2ad1:6fc7%3]) with mapi id 15.20.2900.015; Thu, 16 Apr 2020 08:10:11 +0000 From: Xiaojian Cao To: Jiri Kosina CC: Artem Borisov , Masaki Ota , Benjamin Tissoires , Henrik Rydberg , "linux-input@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Tetsuya Nomura , "vadim@cirque.com" , "pod.alcht@cn.alps.com" Subject: RE: [PATCH 2/2] HID: alps: Refactor axis resolution logic Thread-Topic: [PATCH 2/2] HID: alps: Refactor axis resolution logic Thread-Index: AQHWDr0x2NbbGmh+BEarMrC/TfssrKhxZ8AAgAAQo0CAAA8hsIAADIzggAADu+CAB1VEgIAAlyTwgABrVQCAAADvYIAAPBQAgAE7UnA= Date: Thu, 16 Apr 2020 08:10:11 +0000 Message-ID: References: <20200409230009.22551-1-dedsa2002@gmail.com> In-Reply-To: Accept-Language: en-US, zh-CN Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=xiaojian.cao@cn.alps.com; x-originating-ip: [58.247.0.86] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: bfc2d774-bffd-4ed1-9684-08d7e1dd9605 x-ms-traffictypediagnostic: OSAPR01MB3921: x-ld-processed: 57e76998-77bd-4b82-a424-198f46eb2254,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-forefront-prvs: 0375972289 x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:OSAPR01MB3057.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(10009020)(4636009)(396003)(39860400002)(136003)(346002)(376002)(366004)(71200400001)(6506007)(66446008)(7696005)(54906003)(85182001)(64756008)(186003)(316002)(66556008)(2906002)(66946007)(76116006)(4326008)(33656002)(8936002)(107886003)(66476007)(26005)(53546011)(5660300002)(52536014)(9686003)(81156014)(478600001)(8676002)(55016002)(86362001)(6916009);DIR:OUT;SFP:1101; received-spf: None (protection.outlook.com: cn.alps.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: VvaU5kdZCueWcDsiN9HVaa2+My0gig3nBSntAfkBxEtGL9ZpGGlA/sVjs8hIY4SfCTwIPWHcAevKYk6JJCYYh6u6Z9LkX+mXQar+Y8LHNs0i2M+mZ4Tpl5C9J5YFBv8Ek48a8PDLh0Z2T9dlhHAjIiA/ULsQEc3gNgXiW04aqx4N4kMvPVfWc9ckiHA4LVPD/Yh/R45oMPzKSlHyIRQ0o2j7JzlGlPJqkWGDSKAFY41VelCh24PhjaeFLLM9iLiXPGDWVwA90i0dGvnwE5F7ft8tf88Ho8My4HkAF2uX4Ra6UtBVQow/dmtgerQVbtOlKh5hwfJakUjtMHBDJSvo1aWMAgiGozHRHgW9GOpaiqeK5BQsqpZljIhXxfs1W7FgEkb7Kr8ZR4AeJRw1u8cvlnTRI/xhyqEPlH/6/8bKbsz6b4uTPOKJD+E5b4UELQFN x-ms-exchange-antispam-messagedata: oVNr5K5ABTLv1+IQCaDTJE+1Q9uSxGyk3vOoYBKwMxvI0Kx506RNicCwbVt+ilPh2CCoFqjCgp6BgKyxWJzx+Q1jzc3pv/QFY5qknrHmJ4fyWnF1hxuUB5pfibS2E15jfthXnfrUl+bobM3JxC7LIw== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: cn.alps.com X-MS-Exchange-CrossTenant-Network-Message-Id: bfc2d774-bffd-4ed1-9684-08d7e1dd9605 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Apr 2020 08:10:11.6535 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 57e76998-77bd-4b82-a424-198f46eb2254 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: dr77IGmL2R7ZsyId3f7pYvcz9c9etnb1D+DDzFulwforbRSbq8oo/SnuLnx7ZWgo8olJl5H/+o+l6zqychvmdHLMGVocpesVBtRakmfb64M= X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSAPR01MB3921 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgSmlyaSwNCg0KSXQncyBteSBwbGVhc3VyZS4gDQpUaGUgbGF0ZXN0IG1vZGlmaWNhdGlvbiBp cyBzdWl0YWJsZSBub3cuDQoNCg0KQmVzdCBSZWdhcmRzLA0KLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQ0KSmFzb24gQ2FvKOabueaZk+W7uikNCg0KDQotLS0t LU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KRnJvbTogSmlyaSBLb3NpbmEgPGppa29zQGtlcm5lbC5v cmc+IA0KU2VudDogV2VkbmVzZGF5LCBBcHJpbCAxNSwgMjAyMCA4OjU1IFBNDQpUbzog5pu5IOab ieW7u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