Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753871AbbFOCbl (ORCPT ); Sun, 14 Jun 2015 22:31:41 -0400 Received: from mail-bl2on0112.outbound.protection.outlook.com ([65.55.169.112]:31002 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753011AbbFOCbc convert rfc822-to-8bit (ORCPT ); Sun, 14 Jun 2015 22:31:32 -0400 From: Dudley Du To: Jeremiah Mahler CC: "dmitry.torokhov@gmail.com" , "mark.rutland@arm.com" , "robh+dt@kernel.org" , "rydberg@euromail.se" , "bleung@google.com" , "devicetree@vger.kernel.org" , "linux-input@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH 6/7] input: cyapa: add of match device support and description document Thread-Topic: [PATCH 6/7] input: cyapa: add of match device support and description document Thread-Index: AQHQpN4CBfv3bW549UWwc1wCL81joZ2pz2oAgAML2yA= Date: Mon, 15 Jun 2015 02:31:28 +0000 Message-ID: References: <1434092198-13018-1-git-send-email-dudl@cypress.com> <1434092198-13018-7-git-send-email-dudl@cypress.com> <20150613035358.GA18645@hudson.localdomain> In-Reply-To: <20150613035358.GA18645@hudson.localdomain> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: gmail.com; dkim=none (message not signed) header.d=none; x-originating-ip: [125.215.45.171] x-microsoft-exchange-diagnostics: 1;CY1PR06MB1817;3:px9W7Ye1H4GMJcvm/sKin7ASj5TTICNsfxMBklLlrLmJJ8HuHvjwdDQcd+IG2vyMEuGuhsUdJL8rC4Vdk9gA1bT2QiIhV8MoiJzKfgzJasXCdI09BCLPpeqxnX2PVpTU1GlFc+CxjeWcvEhlUFkYSw==;10:guqlQeQ1l6j1plOh3ohQ799WlpdhXIs5cOCpXiRfDy3LvdGVUFtyAtISDV++Y5OE+4YV8M2LKhlPaFA0VGRg9soFjplRAIg9Tv1s76p4HA4=;6:yeqWiO9dj6dvYm/mpTn4e4SlkciFE1C9wGeOREK8I5czI5jY33iiQE5OjC7c08NY x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR06MB1817; x-loop: 1 x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(520003)(5005006)(3002001);SRVR:CY1PR06MB1817;BCL:0;PCL:0;RULEID:;SRVR:CY1PR06MB1817; x-forefront-prvs: 0608DEDB67 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(51704005)(51164003)(24454002)(164054003)(5890100001)(74316001)(2950100001)(189998001)(54356999)(76176999)(50986999)(2900100001)(110136002)(5001960100002)(77156002)(62966003)(77096005)(5002640100001)(19580395003)(46102003)(19580405001)(122556002)(40100003)(66066001)(76576001)(33656002)(5003600100002)(106116001)(1411001)(575784001)(86362001)(102836002)(92566002)(2656002)(99286002)(87936001);DIR:OUT;SFP:1102;SCL:1;SRVR:CY1PR06MB1817;H:CY1PR06MB1817.namprd06.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: cypress.com X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jun 2015 02:31:28.7015 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 011addfc-2c09-450d-8938-e0bbc2dd2376 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR06MB1817 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3903 Lines: 110 Jeremiah, Thanks for the review. I made the patch based on dtor-next's code based. I will make the next v1 patches based on the linux-next to avoid this problem. Thanks, Dudley > -----Original Message----- > From: Jeremiah Mahler [mailto:jmmahler@gmail.com] > Sent: 2015?6?13? 11:54 > To: Dudley Du > Cc: dmitry.torokhov@gmail.com; mark.rutland@arm.com; robh+dt@kernel.org; > rydberg@euromail.se; bleung@google.com; devicetree@vger.kernel.org; > linux-input@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH 6/7] input: cyapa: add of match device support and description > document > > Dudley, > > On Fri, Jun 12, 2015 at 02:56:37PM +0800, Dudley Du wrote: > > Add of_match_device machanism support for Cypress trackpad device, and > > add the sample description document of adding the trackpad device node in DT. > > TEST=test on Chromebook. > > > > Signed-off-by: Dudley Du > > --- > > .../devicetree/bindings/input/cypress,cyapa.txt | 44 > ++++++++++++++++++++++ > > .../devicetree/bindings/vendor-prefixes.txt | 1 + > > drivers/input/mouse/cyapa.c | 10 +++++ > > 3 files changed, 55 insertions(+) > > create mode 100644 > Documentation/devicetree/bindings/input/cypress,cyapa.txt > > > [...] > > diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt > b/Documentation/devicetree/bindings/vendor-prefixes.txt > > index 728cd0e..4813437 100644 > > --- a/Documentation/devicetree/bindings/vendor-prefixes.txt > > +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt > > @@ -48,6 +48,7 @@ cnxtConexant Systems, Inc. > > cortinaCortina Systems, Inc. > > cosmicCosmic Circuits > > crystalfontzCrystalfontz America, Inc. > > +cypressCypress Semiconductor Corporation > > dallasMaxim Integrated Products (formerly Dallas Semiconductor) > > davicomDAVICOM Semiconductor, Inc. > > denxDenx Software Engineering > > diff --git a/drivers/input/mouse/cyapa.c b/drivers/input/mouse/cyapa.c > > index 86f2263..7e7613f 100644 > > --- a/drivers/input/mouse/cyapa.c > > +++ b/drivers/input/mouse/cyapa.c > > @@ -25,6 +25,7 @@ > > #include > > #include > > #include > > +#include > > #include "cyapa.h" > > > > > > @@ -1562,12 +1563,21 @@ static const struct acpi_device_id cyapa_acpi_id[] = > { > > MODULE_DEVICE_TABLE(acpi, cyapa_acpi_id); > > #endif > > > > +#ifdef CONFIG_OF > > +static const struct of_device_id cyapa_of_match[] = { > > +{ .compatible = "cypress,cyapa" }, > > +{ /* sentinel */ } > > +}; > > +MODULE_DEVICE_TABLE(of, cyapa_of_match); > > +#endif > > + > > static struct i2c_driver cyapa_driver = { > > .driver = { > > .name = "cyapa", > > .owner = THIS_MODULE, > > .pm = &cyapa_pm_ops, > > .acpi_match_table = ACPI_PTR(cyapa_acpi_id), > > +.of_match_table = of_match_ptr(cyapa_of_match), > > }, > > > > .probe = cyapa_probe, > > -- > > 1.9.1 > > This patch fails to apply on linux-next 20150611 because of difference > in vendor-prefixes.txt. Probably just needs to be updated. > > Applying: input: cyapa: add of match device support and description > document > error: patch failed: > Documentation/devicetree/bindings/vendor-prefixes.txt:48 > error: Documentation/devicetree/bindings/vendor-prefixes.txt: patch does > not apply > Patch failed at 0001 input: cyapa: add of match device support and > description document > > -- > - Jeremiah Mahler This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/