Received: by 10.192.165.148 with SMTP id m20csp2556977imm; Thu, 26 Apr 2018 13:05:37 -0700 (PDT) X-Google-Smtp-Source: AIpwx48k7b4TN3DCBpq4eLBSOYFQbtgtm2UT2tnL2JW8btDgJ6U7/Xo1G1V7/NUBfnDGelO5DZ+6 X-Received: by 10.99.42.206 with SMTP id q197mr29114934pgq.60.1524773137286; Thu, 26 Apr 2018 13:05:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524773137; cv=none; d=google.com; s=arc-20160816; b=zAJzTCiYmWu6SRPUCPdcMN69hPiB1OtlsOH1/RlwXO7tommn1+jjX1+QJXaliEB9x2 Eg5N0HQPecpObhkQibq1zS+tnFTy4inHIIFSm20LDY58MA+jrbFwOMMWAaCCAi0txkbL YH+Pb4nPv+I7jEbAd4NB6YrL1p77JjPfEkuoYRCUgUIPUjJGOlKzOk7IyMzBlStPocwm lG3g4nvMtJfm2sZ85IDMAu0+wZ4wiJutPuJK9QtQ1BuEuwsJLmDgmleoHg0C8j2A7Tg5 +Fy0tqQCkIM/lhWfo94Q6L1Y1avIaOhokhaWoiJ1OAmNI7DdoIwOAW82P5P/zp1VehI9 Uzdg== 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=OGONI0FO4GI0stRGLWVTg1hK+hRm3ru+/Y3txhVzJ50=; b=FHm5OQ6W6+dpE/hcZZpHGifyUwDbDG2PT6X+Thig2j67PXI5ZOp6B/0R54T0fxj14h sgnRScZvNvz71CHMGEkpsWt4YTD87rE2njjlr4Q7wrWzrE8X4/hunXgvB1xJ+pbsckr3 5BXxfPRccKr6AU5UQWPPocwhCmcBz1a0eqQWF9B2V2q2Juo3/j78YEOHUtgynyP9iyTf rlR+8dJvz65I7J5NpQzmpyxH9u8rdf79fnK8dd1vdaf/oyxZHZAoPEtQdNE28BwIvo9D 0tB1nxNTITMl60qproJaDvFHVaxPR20LtnsxTduzHoXykYc0A7Rk48gxBkIC238AlJ4E yH6g== 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 t8si13627132pfl.344.2018.04.26.13.05.23; Thu, 26 Apr 2018 13:05:37 -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 S932210AbeDZUEV (ORCPT + 99 others); Thu, 26 Apr 2018 16:04:21 -0400 Received: from sauhun.de ([88.99.104.3]:44024 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756871AbeDZUEE (ORCPT ); Thu, 26 Apr 2018 16:04:04 -0400 Received: from localhost (p54B33D5B.dip0.t-ipconnect.de [84.179.61.91]) by pokefinder.org (Postfix) with ESMTPSA id E313C32475B; Thu, 26 Apr 2018 22:04:01 +0200 (CEST) Date: Thu, 26 Apr 2018 22:04:01 +0200 From: Wolfram Sang To: Dmitry Torokhov Cc: Wolfram Sang , linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, kernel-janitors@vger.kernel.org, Vladimir Zapolskiy , Sylvain Lemieux , Rakesh Iyer , Laxman Dewangan , Thierry Reding , Jonathan Hunter , linux-input@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-tegra@vger.kernel.org Subject: Re: [PATCH 20/61] input: keyboard: simplify getting .drvdata Message-ID: <20180426200401.lvqiy4gnchkwr4qw@ninjato> References: <20180419140641.27926-1-wsa+renesas@sang-engineering.com> <20180419140641.27926-21-wsa+renesas@sang-engineering.com> <20180426191947.GC162443@dtor-ws> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ue3i4hheqebajblj" Content-Disposition: inline In-Reply-To: <20180426191947.GC162443@dtor-ws> 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 --ue3i4hheqebajblj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Dmitry, > > We should get drvdata from struct device directly. Going via > > platform_device is an unneeded step back and forth. >=20 > I consider the fact that platform device's driver data is accessible via > device driver data being implementation detail that may or may not change Isn't it actually the other way around? platform_get_drvdata() is a convenience function to access driver_data which is embedded in struct device? > in the future, so I'd prefer keep using the proper accessors for the > objects we are dealing with. Exactly. I'd just argue, the object we are dealing with, declared in the PM functions, is a struct device. Thanks for the comment, Wolfram --ue3i4hheqebajblj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAlriMK0ACgkQFA3kzBSg KbaSAQ/+J0GQoNKASnC4aHI+yQlS055LEKJU1zAt79xAcepud8GupA7hLnkfweqc hPzTjzNvV6KzpHM/kqp2nORkTr9alb0bhWjeSp52J3ihawsHC37FHgZy51yjdabo HNcrOwmz/NuZqQVUwk+SYwUy+amKbuZSqjG71qqUKV6cOUyp2FLiKyWMZPviVv3R MpXzvF9upPhqA/z/Ls6I7D3f2Jraun/NWFGnE4IpWhngjrBtCQ7aQZb93YKy5r4/ MxDpQZ5xHdJjy/QLSZJjajnP1J13DcyAspriE8jdhwEi2QSgJB7dz50Q0zYxU9bZ N8nPnrTrIg2Zapwp8EISovruTrC8rjry4G0Ace5QkWi9JSXnL1DyfHUejyeRpUw5 bP/XW0RPsoDg4jEvVlbEYOZSQGriO+CWK2IxayJq1HVVyKrE3syTZWJYqOVVBX8Z 40y+Hsug2fDtmSlKM8jErlFjXYhdcb9XYVlBSioTPeMRmBVr6O7PInm2nVNZm+wQ 333O2th9GH84FaPxYzTlCFb8p65BqnYJZjCpvUw+eUbNANiFi9B6dRPhDpltCW6G /3s5yTsRoNbMNxUZlq7GFuHWnGxRM0agaZhYZoSf5Lxd4RTFjxJH0rUJAP59r84E rJnCM3PzZFzqzQE+y56fyhE1nZRTM+D1l3VtbFDE2tJB1DEAWmE= =aN5S -----END PGP SIGNATURE----- --ue3i4hheqebajblj--