Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752025AbdCAHzU (ORCPT ); Wed, 1 Mar 2017 02:55:20 -0500 Received: from mail-by2nam01on0041.outbound.protection.outlook.com ([104.47.34.41]:61504 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751824AbdCAHzN (ORCPT ); Wed, 1 Mar 2017 02:55:13 -0500 Authentication-Results: spf=pass (sender IP is 137.71.25.57) 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 1/4] Input: ad7879 - make sure we set up drvdata References: <20170228220848.31185-1-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: Date: Wed, 1 Mar 2017 08:40:56 +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-1-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.57;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(7916002)(39410400002)(39860400002)(39850400002)(39840400002)(39450400003)(2980300002)(438002)(24454002)(189002)(199003)(54356999)(76176999)(626004)(50986999)(54906002)(77096006)(36756003)(31696002)(86362001)(229853002)(2870700001)(33646002)(356003)(7636002)(3450700001)(8676002)(8936002)(305945005)(2906002)(31686004)(6916009)(38730400002)(106466001)(43066003)(65806001)(65956001)(23746002)(39060400002)(6246003)(110136004)(5660300001)(83506001)(189998001)(2950100002)(6666003)(65826007)(4001350100001)(64126003)(47776003)(4326008)(50466002)(53546006);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR03MB2715;H:nwd2mta2.analog.com;FPR:;SPF:Pass;MLV:ovrnspm;MX:1;A:1;PTR:nwd2mail11.analog.com;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD010;1:nEMy64bdOiZteR2QdtZv+stYt+rs+4Ko7CjbDBpginjhmqZIYim4ha76IbcKo4urHgH24xQdjaXbatz1fr2OPd46SAyJ5JJ9YpUFz/XsaAy5rCgCNDpd9SUI5vuZMCQbc4ua4nAhbAM8lv2cnrp3RkI1RYOFzAv9a5vFk6hPsfdkZViOqAz6CzarQE4PcpMljoVB8azs+UCOAQlzoVJ4pvW3qbnBB454jf2gs/DdittS5fmIx0gDESe3vpl8XugcasT6JxmGgjyeJhMNJLznKFmrwnkcQEqZXjMmnjih8ABes+ChxxL8IOBD+UxDygjRBn8w9bH4dxpvnMlgXUddeCOxLRhKi+uB0Hs1EjlFIqrm4XCv1lWBwQG3VYAZsxrZ83hAbshwJnoMWaGG3u6FzWZTp0b92ITpBO7tvaDoE/qH/3hobsj4Y5SC+5WkRRGa4vDh3xfIVSvG8NfI7GpEjH+81zHAHNp0swFNET8VIJVk5Cu48yECkFQK0+AA3aY7zV8+dsv6N7ZDCq8Amz5p1VFXuWyw5yIBKRbqQ4qW8XA= X-MS-Office365-Filtering-Correlation-Id: 0afdf73a-69e8-4bbd-d2dc-08d460761ec5 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(8251501002);SRVR:DM5PR03MB2715; X-Microsoft-Exchange-Diagnostics: 1;DM5PR03MB2715;3:CKjDbktENnUhFXELGX3zkAiErk1r88vphAD7jKAgBSebXvXRYf7cM2ZLOr8rSccf9DZXTnXr/a2k1ftqIrBGRm3XbizJdWDOmKkJkOBrH3EfLtiyAOhViGFZLqb8PcPmCGVyQbU1k3rQpviRCyXBquVQZGYqAqRMROIDHVF6PHHWwqBlXCtCUBV18hp3HMuSrRKT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ou2Irw237wt+rteWhupkeQtCkc6AcsbC4ZKqjlGjfXqG6K7nTbFR/ELQTCuYVSqVA1Zocsntpc1AD7vCne6Su6XQmfu4sZnhh8La6XgM/eWj7x6YPofEPylDNuI6/NJKnm6zNY/zF5SKuDAwV1qU2pUZhpmei2mAWkEyrIgK9Or/AjS/u5s4SX6LQzcMJCY68lPgdxoldAvTFLQHQJFo6/ai25bjEZi/AuLp+9cFwV34aoWcMBgmM0SVRjDbh78HkUhc7mDlzV+F3h0SfntZ5C3+5VKZeSdzkfWnw9vfoqS/YoDMRowLEA/iFrzBhiSVIHHfU080sviB2yOqySDhYFxKufkfYEtwNwhKV2Ex1K9pta0Cg4ihm3KxFHGJFzIbIPxER7kyOqN6dt3ykn8EBo9nSfVSZAIAnt88iPrTP3cdfVHAZIwj 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)(13017025)(13023025)(13024025)(13018025)(8121501046)(13015025)(5005006)(10201501046)(3002001)(6055026)(6041248)(20161123558025)(20161123555025)(20161123560025)(20161123562025)(20161123564025)(6072148);SRVR:DM5PR03MB2715;BCL:0;PCL:0;RULEID:;SRVR:DM5PR03MB2715; X-Microsoft-Exchange-Diagnostics: 1;DM5PR03MB2715;4:onOWwQAY+dsxLF7rY7gEIMx4XxSqPzYiXkJls04uvwV2TkBV0VFqdQB7XR1PtTjI19zT5J+bIKEotWLDJMOMH3HTdOqjooEDiLDnGsOld8CHl/d9urCdYYFhy99vVOUCJFdzBhwUAMQ1zBcR24fb62H5X9L9L9GqnRqaR/Hk9vV92DgC0Y6FIh99D6H96vuWswJvYBDfkgCefL0bSveLcwW0eYelIYZVx7KZhItevFaI+MZmkmnJTdoAIzGUcFC4Led7gQD+ejyrcDQF0/HFqbyyy1P3D8qFN9sul9sacnqGQaLbT5HHSdc8sUvyy6/WITBBjsYC/uaaI31YmiD+YqHMS4QAwpC4Y6pZPwmfDeNt6gQsE+TkVlYyiwNr0H5dCywGx6+odBRSbeh29shxU7RuilkxKc8Lpk4uXjkeaA6eHUeL6DVmV4l4N4WURcc3gBn1PUEisLwXk98TAXCIckF3L0QD9ABUg12WLpbD1xRPD8motNxToYEFd5T3NXyFJv6CH2d4xNK6w8YAqdPR4MoN/ncIsOjNsO5aHinYNzokYcSEakREXozDMhAoYZjx0L9aCGxd9iZL3t8sp5c5gr9O+Is8XQkZ2COhhFxYLxncyPH74A023VtU011gsQ6NcYZkKYZ6f2EzWjXem+dRPiHC2M0ebHB5ZCrTc38CeAVBd0fuewLuzjDwj5fR6NxwbWQPGZXxvj1ZpdmxvJf8J+VDhGVjQIQffHwWpAslKdi/rd+V7R/gisGDkD0z1t8XCoei1UqD9jNBMdTs52TgDA== X-Forefront-PRVS: 0233768B38 X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1;DM5PR03MB2715;23:hUThZzwzfcOki0AIMO1SFSl5NKqnxqvq6cyHr?= =?Windows-1252?Q?d6JoRDUndnwEba4J7QcxzE28nHoAuRjco48GiSrtK6E2UfRoHRWzt0Zq?= =?Windows-1252?Q?TjNi9OBYyOhRN3jOJAO0Do1lBQBsLHD4Mi8F1YiyJ4B3QV1YEYFFqdy1?= =?Windows-1252?Q?j3w6jasEfgwo4cMM3EVVQmJFax/k6B880X+RJTmU117h2of0Phi7BSPV?= =?Windows-1252?Q?iGwJ2Mvovk8R0ocPyGwf4B5k77iPmDIZvohzv4+Jy1GKEJD9p4LhyO/D?= =?Windows-1252?Q?HWU4K00LW5UPbJtQqGD+8uU05NlY1n6eY5FqunURBYASFvmEG9PGgqSS?= =?Windows-1252?Q?d60ES82QOZ6o9Hm7Yj3gMTKbnvki/IcfiXqktyRJqwWLLKCzfgtSAr6W?= =?Windows-1252?Q?KDhmtzjdpzmf/oeNvD41HXqoSJ+Lbu2YHTXtouFRPwTYMNRvJGY/s/rk?= =?Windows-1252?Q?iaKjeFXrPXGUutEP+6lC3HTXc1pfgz1QQ1GH/o2r36ZqmS6ChFI0yHiy?= =?Windows-1252?Q?2fzSMBrjdIKbhNfxvAx/U5zquCvuSSsHPvGYYRI4ZBp3uXVhGGOnqPbF?= =?Windows-1252?Q?n3p25kWVMqDJ1xP0KqODFRc33Zc3CCkVek7pjQMHYEgwrjr11myyRHH5?= =?Windows-1252?Q?41NDCtoQXtDrD0q25taeMfpuSq4E1L9IzqFnHklpLYrLcmIQRxZNpSYe?= =?Windows-1252?Q?ywcGA2zUZ8LSlHM7Cvg+AVYJezj869Z1oKNTs3q/U75e4gPJ1wwBX/n2?= =?Windows-1252?Q?VagwM3Lspc3DHaFX4etukg0vUG4zC8hXLE2L764oqaeMcP6h11HAyv7v?= =?Windows-1252?Q?zNMDelllftkpjtBMnAFRS2XcDUFZGxqys5K6bWUemlUoi0h89R2By47R?= =?Windows-1252?Q?cxDFpEs+UIganmReOIyQeNAAKPOuYUb8I3+0kBwjLiRGUu/rrw9oKNNQ?= =?Windows-1252?Q?FGSbzzrHyGS3i+XuswmaSVnNilL729RROlLBebd4srKnQ8rNq0IUZA3i?= =?Windows-1252?Q?VgKBvZwNqT64DU9UiZscywdMOEACJLtqJLkweJD6XEwLgp9H+g9TEJ8j?= =?Windows-1252?Q?Yu95Sj/5RrMcFU02dBQuTX/yxHJZIOWhM0y8eY5ZpOZ7gVPcYIdzf1t2?= =?Windows-1252?Q?d2G8UP5Ub9mL6Rwta7SWrdfbsQIjBG+vyRo5qsDd38OnLupdMyQzN5em?= =?Windows-1252?Q?8tzAV+Bv9HD5whx/X8GYZSr2MK/LldkaTmQFtzEa5Ahtwf6qSAVL8qmT?= =?Windows-1252?Q?v31A/0Z1U5P4+lN9lMtZYoM6ZCzdDkcGBp8H5zKQSI9sQnVCZg1mSvuy?= =?Windows-1252?Q?LNd7hKi6hzM5ZGM06cuKg4EjiK2ElOvfkaVQI789QfKrsR1ox48zEkfk?= =?Windows-1252?Q?d0OwqFMVrCsJckfgsF7HLAja2mAk3j1r4Gpqkrh61F8dpuhPD34ifE?= =?Windows-1252?Q?=3D?= X-Microsoft-Exchange-Diagnostics: 1;DM5PR03MB2715;6:zyIyxAg1+Irxl+22/QlMquGbavI0sWF4idF2TWrrkKK9b9V5wzX29gjk8bkG/7xX1lMT6k8ldVc/HRpTi5WSkk5GKvGy4WFVh5SGqkvgd5az19h/vaeeCQPbuXAHxVQPdzqyjMqjqIDjWrR4iJtHYs5lnEFscNavA3GO6U1goITq9Sh9XefubhGzmRj9/wZeWxesWOqQjJkokYAnpR96Q5hcQEMmD0C/I+F0K1maXy/3bgxHnXXj4oChCYwOfqPyfC1N8uaq/eo3LyfkKBu8BLi3/LzYrVnzDrsUOAeWXKjpctkOmtx+CzIY2BEyCrj5/g78oOiWGlDpnwrz3wI4wLm52wII+fyNA98Ne58pyvth9+kbizUlLdOIKKYSwtD7oanS2FHQ4AoTq+FyiXLJrSJ7Iwlmc6PfxRTtloWyPzQ=;5:a57uw9DbSDcTumfBXV7GPEC8Qfbozy96jJIu5UFKgXF7lSFV9VwoeKYRQIVgGvW530d1xZ/khVpL8TmDd+IG5EfUmNa5jn8rCH3mJZDQ4/4Cv4LrdJ3PqLDJzXUS6/OTWEeZ9JDxAOgDE1L1xEq7ew==;24:eBIVKHWlEa1cCthS7gY3L6mOtB8vkfP79+Can9TeXvQRMzYcihQycp9b5i6nlv0DODLDM5vqZIXi/mRq8fpC4y9FpCqanZ+n4QXZ1vuiQWw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DM5PR03MB2715;7:iqEM6eBVADixNLTlj+Iniy30woh9wJ4sT/rUPsoQsYolb0u06HcXF6yCRnsPH8PQPLjsuSxj0uHZwSxE5tO4cz4WFC3xZdQscupelfcyyUbSyhLs1KBWc5FaKZP0pzjCoHUJ3RWMsidYSnDURvHM3GO9h56EDIdOGZgLiiGxquc+96EgPgdK5sh8C8nJAwBGqIj16kauJ4ykYEHDyPniDYKgGG8xq9wKjmroiihlsqdIkqewMWyjytaKfLSK5XJqXIPnmJallglRh/uI7e0T+SHsTA4Dx5uiVuVqzVu9kexdDWMcWzFNj5ySIlQfJ3A62vxULkHL4mwEXzHo/JhcgQ== X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Mar 2017 07:39:40.3679 (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.57];Helo=[nwd2mta2.analog.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR03MB2715 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1657 Lines: 52 On 28.02.2017 23:08, Dmitry Torokhov wrote: > The conversion to devm accidentally removed setting up of I2C client data > upon successful probe of the touchscreen. Let's move this setting into the > core, so we do not forger about it again. > > Fixes: 381f688eee3d ("Input: ad7879 - use more devm interfaces") > Signed-off-by: Dmitry Torokhov Acked-by: Michael Hennerich > --- > drivers/input/touchscreen/ad7879-spi.c | 2 -- > drivers/input/touchscreen/ad7879.c | 2 ++ > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/input/touchscreen/ad7879-spi.c b/drivers/input/touchscreen/ad7879-spi.c > index c73798297b98..59486ccba37d 100644 > --- a/drivers/input/touchscreen/ad7879-spi.c > +++ b/drivers/input/touchscreen/ad7879-spi.c > @@ -49,8 +49,6 @@ static int ad7879_spi_probe(struct spi_device *spi) > if (IS_ERR(ts)) > return PTR_ERR(ts); > > - spi_set_drvdata(spi, ts); > - > return 0; > } > > diff --git a/drivers/input/touchscreen/ad7879.c b/drivers/input/touchscreen/ad7879.c > index 1bd870277e1a..52daaa4edc67 100644 > --- a/drivers/input/touchscreen/ad7879.c > +++ b/drivers/input/touchscreen/ad7879.c > @@ -680,6 +680,8 @@ struct ad7879 *ad7879_probe(struct device *dev, struct regmap *regmap, > if (err) > return ERR_PTR(err); > > + dev_set_drvdata(dev, ts); > + > return 0; > } > EXPORT_SYMBOL(ad7879_probe); > -- 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