From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfram Sang Subject: Re: [PATCH 1/2] drm/msm: simplify getting .driver_data Date: Fri, 22 Mar 2019 09:32:01 +0100 Message-ID: <20190322083201.GE1005@kunai> References: <20190319163629.30660-1-wsa+renesas@sang-engineering.com> <7d66ed6f-1dc4-05ec-567e-939df7d8c94b@ideasonboard.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="3XA6nns4nE4KvaS/" Return-path: Content-Disposition: inline In-Reply-To: <7d66ed6f-1dc4-05ec-567e-939df7d8c94b@ideasonboard.com> Sender: linux-kernel-owner@vger.kernel.org To: Kieran Bingham Cc: Wolfram Sang , linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Rob Clark , Sean Paul , David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org List-Id: linux-arm-msm@vger.kernel.org --3XA6nns4nE4KvaS/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > > - struct platform_device *pdev =3D to_platform_device(dev); > > - struct msm_gpu *gpu =3D platform_get_drvdata(pdev); > > + struct msm_gpu *gpu =3D dev_get_drvdata(dev); >=20 > Nice simplification :-) >=20 > Do you catch these with Coccinelle? Yes, the previous series had the script in the cover letter, but for this small series, I thought it was too much. I haven't changed it since then. --3XA6nns4nE4KvaS/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAlyUnYEACgkQFA3kzBSg KbZH1Q/9GiumevdCXYDywxVkBEGKkHqsak/lfC0FCyk9nIbwTB5T9BygKpMo7Jjj 7FqG71AeYTvtsVsoxkKt7vozKtkomgFStiXZC7a39y7cTWnY8ReadnucvY4xtN0Y ix1X8khP43em2g1PKHnZK+SseAgZPwzgkXpTw5yDl80mbsgYceleY1q6E6bMA4+f QDtl6jvbtmXVIpduMqv40fRISVN8bAuygtGLeTIIVpmC8QtmYc8kkQYU/gnjOCd8 OC4VqZGNQ66qYib1rPntiK9pnZDXEJsNlfG7/O6GGFY4yGwGD06W89N2VFn1oEBj 14hPPHUIo/ttsxmNMm9XmlZ9oHZL72WdxjztnDDROdxMAwSeKGwR3bL3wiplRLpk zEItq6iUfNiu7/m5wSjcwOum3bFgAUDIscu0ApntmSKNfpWie49K0GLocFvH9Fl3 oG8BetU34UFB2D8oxYsS0kehcddNEg1O8a9b7MBtvdi048uFwpQLPDK2bpgN0WUR tfEJxcacj2WhZaafVN1xcKlq1riVj03JFW6P/IrB2w8JbqseGmWlHGh8nOM++NJd ksvRj6lEKn6UDBI7Ug+iC7QLBubO7WQMlnPW1pwEE2fIZTlLWqjriNvae3c3IPtc EH/8KJR6gpyJZIc3sBlQevF3Uh1Zcnma+vaTD3byuUvQuGPzUqw= =fJka -----END PGP SIGNATURE----- --3XA6nns4nE4KvaS/--