Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751945AbdCAHzQ (ORCPT ); Wed, 1 Mar 2017 02:55:16 -0500 Received: from mail-bn3nam01on0061.outbound.protection.outlook.com ([104.47.33.61]:23647 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751560AbdCAHzN (ORCPT ); Wed, 1 Mar 2017 02:55:13 -0500 Authentication-Results: spf=pass (sender IP is 137.71.25.55) smtp.mailfrom=analog.com; gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=bestguesspass action=none header.from=analog.com; Reply-To: Subject: Re: [PATCH 3/4] Input: ad7879 - try parsing properties on non-DT systems References: <20170228220848.31185-1-dmitry.torokhov@gmail.com> <20170228220848.31185-3-dmitry.torokhov@gmail.com> To: Dmitry Torokhov CC: "linux-input@vger.kernel.org" , "linux-kernel@vger.kernel.org" From: Michael Hennerich Organization: Analog Devices Inc. Message-ID: <2cbe69fd-7d69-4f8f-e46b-12bc7b4e0b1b@analog.com> Date: Wed, 1 Mar 2017 08:38:41 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <20170228220848.31185-3-dmitry.torokhov@gmail.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:137.71.25.55;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(7916002)(39410400002)(39850400002)(39840400002)(39450400003)(39860400002)(2980300002)(438002)(24454002)(199003)(189002)(43066003)(64126003)(189998001)(54356999)(50986999)(33646002)(76176999)(23746002)(31686004)(47776003)(65806001)(50466002)(65956001)(106466001)(6246003)(8936002)(38730400002)(83506001)(65826007)(356003)(5660300001)(626004)(2950100002)(31696002)(305945005)(86362001)(110136004)(7636002)(4001350100001)(8676002)(77096006)(53546006)(54906002)(6666003)(36756003)(2870700001)(3450700001)(6916009)(229853002)(2906002)(39060400002)(4326008);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR03MB2592;H:nwd2mta1.analog.com;FPR:;SPF:Pass;MLV:ovrnspm;A:1;MX:1;PTR:nwd2mail10.analog.com;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11FD016;1:wSAFvCOdp6AxZQ4oR9YZNYTyaEcpMh31EfIjXS4Uk/59u43d2M+M8GQ/VsWJ5glHTTickn/fCj7CbtwBJ/mBRSZ9wJSTMa7TK8ascsdUNcw0hAOCwx1EhADGKpx6mQDNRo2jM4OjivHSY5ERqquIOTx/BXBEbJDiodk2BHlY9ZA6XpBOAsBi2xBYv3ZN9gBU54PishLrrhfFV81rdmlYHwah3TTHoPR2Vp980RELRJz7Y3GU6ppfjXMcXrjdtiZ4SBovBKdKwseJYyLJ5ndhLilYdnC9Qh1zWNSd+NpYz3ByMgyMM+EpECq7MB39AtcjI+uF4sK6RpbdETb0uuk4sMiUWs+5K//uDgS/H50iruXuPCYvYlmjK9pt9TjXwjKbnDyYsJLBVehlCEZPtjB+GsgMT8z3GLtgUxGVfS7GxMWalqI1Ni4qeHDtAc1obUtBkEiRypSzUgCf9vMR7z7zpMyxh/RLGg6OmDUYZnUrCyMWpqoGZ2v/ZSgPG56xRNJ9aqSAt7AlClv/PtbcAvwYNXEAu5QMWV59js3RUp2nITY= X-MS-Office365-Filtering-Correlation-Id: 8f82534b-93a8-4ffe-ce20-08d46075cf97 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(8251501002);SRVR:MWHPR03MB2592; X-Microsoft-Exchange-Diagnostics: 1;MWHPR03MB2592;3:b8tDMSXiLuM9/te7JieUIwpmzAICD9AAIPxw6d0+DC6J4AZNOXujTewkj82fkL7ugzPLMFgfzUHH2Lru6wNTA9ROyJfJOkrrz5laXXnkjWhFvrxWnfx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aivw==;20:JNjZ1TqqVyDosWdNZ3NJUC4+N3x69T05wALkaSpp7KOzSRX8+BWbqcXEmCvfwAF8RgCvN0pY5bNXZGrN6uCiYmWmgbn2yIm2h73un0uwj7p7vN5kZRlhJ7pbNjcuO3M1UltMYXOZpzpZ8Ky3ILhukZNoONFzjB0YMxTuUIBsB4ixfgBLFemSopMJezUQlTFU2KVXhF0uPtFj64469prKMQt2JPIxq+YN7rAqk4ackGiu//IIPyhWW9sg6NTgiqX01IWZNaI53gOyiF2rkhBgbT5fC9WUHH5e8D21S4k4wssO2v7Z+Gb0Q022Oa9f6i+1Nei+EjG3wj6c57vtkj4p9RKZXfHjOHqaRdsNp2bpW7dauNSzlL5EKGLXVKPw2Cz6NCOrxkMZdMsfXM6mAJ3VPZXaFhqfsa2Y0zlXT5W5VvWA2jdArq2y4+uvedbf4oZfwXFqoWQ4m/oZnYYWzc2zsvdEUAAdCX5zgdNrOV5A+lGi2/82teYzSP7tNStBtHps X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(232431446821674); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(13015025)(13024025)(13017025)(13018025)(13023025)(3002001)(10201501046)(6055026)(6041248)(20161123562025)(20161123558025)(20161123555025)(20161123560025)(20161123564025)(6072148);SRVR:MWHPR03MB2592;BCL:0;PCL:0;RULEID:;SRVR:MWHPR03MB2592; X-Microsoft-Exchange-Diagnostics: 1;MWHPR03MB2592;4:uxdTh9Qgo/MCzllyZQqa3guzcoz6KlPvrgzV+RSx5TXw0mgaXIz/FRv7HfZx6dVxhbQPUN2v9TDXO76NvkObY87riwHm/X1RcfcE8CC2Qrt04NXxUaoqCEvI1EhjARM3piRND1sjb3mwaWmHSzHnu7uI7ePANa40JPu4hlZVISGP0AIMnUI9ME48g2SpSuc5i1szZSHqm0FK6vukeJGYVRNEVudJY9o5VO/gGTdSeZzQmLZJIs3FBFFjMcMwBk4QcH5ejgYHV73UAY+cxEV2/T1fCZGfELWhZ0j9JUoY4cd7DxFNYeMZ2JUTBAZAB85UU7bu9UOZF32ELM9QF0ZJk5S76SeBhz84kYtOL1ugjJZuxQWSRg/RzAQ65GE9PaXunJyHNTLvjPOBRzClodL1FArAWZTBwb7bNsWuPnMjvF1jFPtTb02vaY+x7mSyCIUAMB+7LVEHSoD6gFcFcWA9On6p6BKH2eCWwzSiBplfVZkEzEgSDuVLG4mDz7DyPQR7P5RmCVEEhKrQj9qXJO+eajv4Go1Toj4AIxUM3uuDTga9aoN6z4mjcSV9DXxSnpZjvvGLVrzB2TAi62zfNmU9cmdRFG77du89bd0Jpe3sjcDP4H3oIW3COgCucfVrbFuV74g1uVrBR3/wpuxyZHNigZv12MDo2kE5nGadfOCu28DI8+tPLJuDYILaEa44NxBdMtgHHthBQiB+ziw7hw5wT3cgGkAzpbzHkmQwtZZDG4ztrT+LXtNzxv3+ssdx8m26D5nP+yZcRkR+1muE8UtgcA== X-Forefront-PRVS: 0233768B38 X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1;MWHPR03MB2592;23:5BJEFs1ZVorx/3bE1LgEC1L/XeFLtoHAjwChv?= =?Windows-1252?Q?S4u5z1xYJyak1Ixq+L6L+dM5Z1TvuOYyKHA6BBE141Kc/R3YQqdsITh1?= =?Windows-1252?Q?V+O/T0ZLcctQ+sOEr8acgGdY1v6FfQBS2IDB8pSawfnm+e5Vf6jdIeLD?= =?Windows-1252?Q?8dF4Qfb9Y/0daNU23MU2nVs6eGzjTsVi82VNgifhG1ivjXs8LiKfbcuC?= =?Windows-1252?Q?MzoxTrhO4ZlH3OJu6pbIlolHgIzMmfnKNCD2zey1o3K7UP0CSES9gqgY?= =?Windows-1252?Q?0O2otk4l0aSK3NhzDzM5btKX1c/IyegQ9+yHxsixctFTqXGmM0pRBfqX?= =?Windows-1252?Q?LurtZjB2yppC7GV0GvaxQTdPikku/UbyYLUElwmLgyHznDhF0AcgDZmi?= =?Windows-1252?Q?uKyt2jFRfVmoYhckQNhsP/ow1KUMAjmHXTWK2seUhXj0a4eCVNlBRg3w?= =?Windows-1252?Q?nkb3SyZX6LRy6nqkWBanXf+Dc12/fihdyGTlBgBMeI3AG3rchLDs7Aod?= =?Windows-1252?Q?y86vnsXJdgrLYjVrk9oBE2L6XBldo5At2B3ZJSB6BOUyFxLZktHuKrHd?= =?Windows-1252?Q?Azo2FWfoLetygkgsv6iZiOJk/999/uVRttyuNukJpZzoVeHF/xJMR7Rs?= =?Windows-1252?Q?LRW5Q/w4sl261Zerd/NCHTTlnvf8kXPcF3SWMCNkMOoZoCUi23Gry1W7?= =?Windows-1252?Q?odlnq4usV0r05XTqZp882U0PH79k7e6jTqWfWcRVO9MifcJ6fiq1Pnsl?= =?Windows-1252?Q?mohwnnqtgkw7JI1zxoSjwvf+9FMmB1d4E3eeCHs7nbfK8hefjRUoWnbD?= =?Windows-1252?Q?mhdCALto1tUUOXv5qIKhR4SB+dVQhQ4Sn/V0Cc0szkMDgxbj1YADDsNz?= =?Windows-1252?Q?a3pXXyyyq9Oi58St31osXfVKD52orLqwbxdvI0lgUe9k/TzKVyF/DDnW?= =?Windows-1252?Q?jhw4KESz/HID0FIMxkj4VvV3USa3Oscwo9Ws+JB1zAjujAICrFR0M3AV?= =?Windows-1252?Q?VMOJpBDHy3FzHFXzNOl2qSOmv05KtrG/Jj68aAsgPe+d5aW4MOSwr7/N?= =?Windows-1252?Q?r2LABqgSC4qix08Xcy5D+P5GinX93XosWlkztOSVx4K5Z6jhKlWRbIIF?= =?Windows-1252?Q?ikIOKRSd0gdLk3DkmgSsipBP/pbr2NBZeOQ3MJroNGbFrd+0mq0lS010?= =?Windows-1252?Q?hLcrmIKjD2e4nmmTcrn9H+VP/f20zSot+GA/wB7bmzSHuoLxZ3fCEC1/?= =?Windows-1252?Q?okKavisgXHrR28M2HzqTBoeD0ByF7SOEIjBVqNFjY7C2NzOzsy5iPUns?= =?Windows-1252?Q?VNbhxenGwB6f+BXknLdrdMxYeMYBg7APYHNQ4jeziHEu3BmoIeJOZlF5?= =?Windows-1252?Q?d9rI0wR5QFCnfTtdIymr0h1PaLvARiZaIKonHBeFPY4nOYsqv0JHMs?= =?Windows-1252?Q?=3D?= X-Microsoft-Exchange-Diagnostics: 1;MWHPR03MB2592;6:FfdIs8FnXSDfPzCawdURBo0TNv5NNDAmi+59i2yy3nN7x6Yihi489U713L3UqbdQ+XzICQiXaLbKmhbqQIL0nt4ndvFjQJzxjy6cARjjCTEtFnnQF2E9f575hH5xGB396AzizYiNvfpHoct9hZCYryUvr8k1M7zs8vLMwDck5BhRq8EsiJhrYBNHDK1tGXGwnfgKfT02r8fLD0AaS6QsGlVOk3o6pcH66lWTYv26rS0jFL09kIH68WmptaVZ6W8eOt7tjri3X/MC3Zs14HMjDJ89TEiuZn+qDV9WZ8AUepVqHS/CEYQbSzL+Ehq78UFC8LtR6TL3H6qIb4m3HrHzgJpMZtbsruYxHiF2KejvZJ2Btx24rmgT04ZV3wPhnhrzmqXvbWIfkjRDfMQtfk0hroB3QiVmO7jiZJ3CIav4Wmw=;5:FG82FrKRid2eg21EJg/8Kh+zkqKnaOqh2tTnDSIzdZFarcvzP6POg/Die4AuT0NSQYF0w1afuoGHC9CKuzz2nbj63x3kor+k/X8mGBthaRV0cBZxKscAwPnvpH2o+ngchOq+VSaBwEWpoAAk78j+eQ==;24:zzB8LHWqP2k/g0QqOHCmRyhi+XoYe6aniG7N7VyrdjcSu7WQY5s+CdvJ/WkezQFo/7ImYJTZ+B1zEH1uuiIRbeqtvMIw22WwYcHhbbuMF1E= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;MWHPR03MB2592;7:SgRTxXEGwU4GxKTEq0NI1NNN8Az3Elqd98nJ8rwF370bNzq1Ti0leW8meILpjtArLmICdtOWJ+qEDdHhL8iQfc7p2mAZone6Y7We5teYKCfTbPXeWA/z5GssJeDic+zB0gUMlCVaQD0smXPTweo5QxjuV/6UcOALI5pLPFU1a/9fn0+p/wF3T6pp0OCSZXVTNy/CqUH/LDjDZFhFohPkk7fcO6M5r9wyQKORVDkWlDGqDCQSkUSZflG0A9lJrnGePI+jG/vdhlogCQXuOilQ/LWlJnOtMSv6dt+ruDuqjM5x03ERoWabsHLA3Ror28HoC0i+2J5qAd470vsdHVyyrw== X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Mar 2017 07:37:27.3391 (UTC) X-MS-Exchange-CrossTenant-Id: eaa689b4-8f87-40e0-9c6f-7228de4d754a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=eaa689b4-8f87-40e0-9c6f-7228de4d754a;Ip=[137.71.25.55];Helo=[nwd2mta1.analog.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR03MB2592 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1357 Lines: 42 On 28.02.2017 23:08, Dmitry Torokhov wrote: > We have switched the driver to use generic device properties API, so there > is no need to check for presence of DT node before trying parse properties. > > Signed-off-by: Dmitry Torokhov Acked-by: Michael Hennerich > --- > drivers/input/touchscreen/ad7879.c | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) > > diff --git a/drivers/input/touchscreen/ad7879.c b/drivers/input/touchscreen/ad7879.c > index 7118f611e222..c415614ada68 100644 > --- a/drivers/input/touchscreen/ad7879.c > +++ b/drivers/input/touchscreen/ad7879.c > @@ -560,11 +560,10 @@ int ad7879_probe(struct device *dev, struct regmap *regmap, > ts->averaging = pdata->averaging; > ts->pen_down_acc_interval = pdata->pen_down_acc_interval; > ts->median = pdata->median; > - } else if (dev->of_node) { > - ad7879_parse_dt(dev, ts); > } else { > - dev_err(dev, "No platform data\n"); > - return -EINVAL; > + err = ad7879_parse_dt(dev, ts); > + if (err) > + return err; > } > > input_dev = devm_input_allocate_device(dev); > -- Greetings, Michael -- Analog Devices GmbH Otl-Aicher Strasse 60-64 80807 M?nchen Sitz der Gesellschaft M?nchen, Registergericht M?nchen HRB 40368, Gesch?ftsf?hrer: Peter Kolberg, Ali Raza Husain, Eileen Wynne