Received: by 10.192.165.148 with SMTP id m20csp1496360imm; Sat, 21 Apr 2018 09:27:10 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/MuwtrI6s+wvHa/Zg2Rn6vXgrRKsMShgHdw4rjX5GDnEZS3dXi2c3LIY6+LrZY3/wOZcnn X-Received: by 10.99.1.10 with SMTP id 10mr11678959pgb.444.1524328030289; Sat, 21 Apr 2018 09:27:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524328030; cv=none; d=google.com; s=arc-20160816; b=Dw8j0DvvZkmsnmclF0l5d0gk40REmuMdDmGR9bBOpDaJ0JzO0lzdrLVQgjfufPLAx6 T8eEUGQ6zyaHoyZD5LNU47M/QgoOhLHLC3TJEJ0P4dM+sCMXOFZsCZ2PJ61b/2ryC/VI lJ4YHQl1qg30n9c0gYCGt5OA1P41ZNnGnExnF9i8+7jieAbb5LoxdIgmuMMvx6MUbR3e 2m1vfmwX/yTVAqNukGODuX/RFY5rS2nGv9hm1y8vZ1eLi29VRiI5ojpmSHlqJyDARZ2M ZXZCMdw7WsBzo0E4hhehS6QLg38gj+NbtlSDNAqihnKhQoO5L3KedDuN14uZq13mcp6m sZcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=Z1fqnGtOpw8Dm2I6kcbg9tBDQEE26AFoFs9bN/fT4Bs=; b=bMFeIfULFae2Z9WQFuaImAweV4dlqGCRJRxGuUWcRQlto9ZA4kKXoyTJCjG7LvA/rt qVO71IoAMgAUD82Ne2cWTRTsiwsqpLS9ECaiPsFHBeEorNmBYglsVjj4OBXK9gvxOzge O0sbhqOzwGdG5eFdLKcZsWnBLBiFisE8nnhGgjgSPs5yBHiKpTMo1nVZ0peN6wsiSvmv +Ny2DBk8Hruqw46sGJjSB8YFmdMGqE/MB9HfAMuExOVjvacuh5Lpalpq2gG619xo3PBE kasKPujtP3RaqdXLWDgJxD6IqaY1JXA5U5J7rZCUYr3WvWUWJlHjFmpDpsG/WGrMlelj y4gQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p15si6839407pgf.358.2018.04.21.09.26.32; Sat, 21 Apr 2018 09:27:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753068AbeDUQXi (ORCPT + 99 others); Sat, 21 Apr 2018 12:23:38 -0400 Received: from sauhun.de ([88.99.104.3]:32794 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752783AbeDUQXg (ORCPT ); Sat, 21 Apr 2018 12:23:36 -0400 Received: from localhost (p54B33BD3.dip0.t-ipconnect.de [84.179.59.211]) by pokefinder.org (Postfix) with ESMTPSA id 827E7322328; Sat, 21 Apr 2018 18:23:33 +0200 (CEST) Date: Sat, 21 Apr 2018 18:23:33 +0200 From: Wolfram Sang To: Michal Simek Cc: Wolfram Sang , linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, kernel-janitors@vger.kernel.org, Hoan Tran , Linus Walleij , Grygorii Strashko , Santosh Shilimkar , Kevin Hilman , Thierry Reding , Jonathan Hunter , linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 10/61] gpio: simplify getting .drvdata Message-ID: <20180421162333.d4jtidmbxrx76k4x@ninjato> References: <20180419140641.27926-1-wsa+renesas@sang-engineering.com> <20180419140641.27926-11-wsa+renesas@sang-engineering.com> <34f4679f-d306-073b-eae0-28c9e8965780@xilinx.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="etezdywpoq6lir6p" Content-Disposition: inline In-Reply-To: <34f4679f-d306-073b-eae0-28c9e8965780@xilinx.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --etezdywpoq6lir6p Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Michal, Thanks for the reviews! > There are two more occurences in this gpio-zynq driver. > zynq_gpio_resume, zynq_gpio_suspend. It wasn't detected because these > two lines are not together. But the same change can be applied for them too. Not really. The rule would have matched if there was just "something" inbetween. It did not match because the "something" involves the variable 'pdev', so we can't remove it. And just changing towards 'dev_get_drvdata' and keeping 'pdev' was not worth the hazzle in my book. Especially since I think the code should probably get refactored. Calling platform_get_irq() in suspend/resume paths in order to get the irq_data looks a little expensive to me, but I haven't tested it. Best wishes, Wolfram PS: Please quote only relevant parts of the message, it is a lot easier to find comments then IMO. --etezdywpoq6lir6p Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAlrbZYAACgkQFA3kzBSg Kbbs9Q/8CL8LUkArsY2fuzYW2Su/J3zMzkR+T15UyicBY0On6vsRRNvm74+Ll0Ot RL2LKMT8vTDuX1/rxX4hkeVNyMe+YCvl2zSTYjBMBGhP3nKbw0RZ9T6oQrPYlFlS G7H0ye0KDb7Kv1YsoDzoTtMAJHezvGslA3Jh4mWnkQWjPhzLJAIpCCD7sQyGmNq8 kMofA51jGYZtoPNlvIli1focrJ73x4Ws5zj+GVhVQdEGdsBHRzPK4RGavxFMeH0u fJ1FcqusTkuDWCnf2XTorFHUqk4/4RSrdiV5J8vrgdiB76Q8iztNg8mBR5vG0J7t NEG1aO4P2yNbFBrIgh/1MgihVIRyTkEuZuEFgPcoDslK8YYMOHvN9AjEHJsD6TsX Fp3EQVBD/dMgIKQZc9jIzKZvO6vd7yW1i5iQDmECUbpt0PnQhr8YnDArdEfwFDF5 DKk5PZKAiOCwi4Kqfcwpr9mhUOln96atjcIPBxC0nBh3leyGwE3qRQjWw+IDB9v3 5Q8sle2qEa4jfkPk5FQ9kCtOh9/MbWgxZrrPFZwzQUAJgAfcDbgAacLSpNYfaCnj sj6Ds5eKt19K2tg/Mg5DLDflzYMwz5ET4TmKHrX+ihi7pzxerVUeEiwiXdo5/62o 8ywmeyKdIhROHZ1b5GbhnafbZQgPm+p0RQGNp1FMePpg7Xa5Ef8= =uQyw -----END PGP SIGNATURE----- --etezdywpoq6lir6p--