Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1228220pxb; Tue, 17 Aug 2021 06:54:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCPdE/WdQgZiHKKY39muwZl8FJ4eR60Ccw9jijAzpff3MNlBJsGEslzqPU4t1tdvdnkppR X-Received: by 2002:a6b:fd05:: with SMTP id c5mr2903619ioi.102.1629208464031; Tue, 17 Aug 2021 06:54:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629208464; cv=none; d=google.com; s=arc-20160816; b=bHfqeUlTET115xa8kcgeJFCWjDrQ6OI7AKdS1WDTiUAUfge8Rhx5YNjy52Nsga1RVO V6wxIHe6eyCAEXRN9IEAax6x9gAEtDm+FnnNzfgDC4YmF+eusJnXSF5sLQa7q8OzPssk kmxNunJG6OpdA3z81OuHUrPSK4sbQxhcUwPMn75xNhYrw7yHsOqPb0OXXojpXhc/2fBs FUePIptqKJOU9dDTiOK+HbjScp2sbpJWO2Btun+2qzDg00+vLquA6dx6fgzC6ggJwqPW OvToQ7bhM0i118SC/7yegneRYu89zskcXlFRPvvSrqdsH8A/ANKOeIBxsAls6+cVyrjQ kIgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=DdliCquo+PE2UHrK1S/P5dg8iEQs9vB2EdH9vP1ZGv0=; b=NRRL1T7SVxzMRQt4moHwIOhawqOvsKiIjmNr+bugKsbjpyC9TnmQwuG12l0lNQCyLM OIXN/FE9bwvbEAXdL6xRQX7+552jYwmDbseOR7GIB+t3o04dHKm5uK28GwTwHxITUHJZ HJziQXdrWVdHUz65oZp0NRpYbl84h0CahUk30ugy21U3/BiSkFTDGnIpuXogeDAKA1QV RFD005Cqyi04gMHep734Bo4Osc4si/Ip3Ij9vQ6Uwcgdj6/6zczuiwyIwkg0PZUQwCAP WXgZit6GCDqot2J/0uC+MVgr3HvBcI3WqaKOkUuQl0IwvfTW0wKh9wU+ND3rJbqi/8gZ K+1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ukAXUhMa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r25si2366903ioh.63.2021.08.17.06.54.12; Tue, 17 Aug 2021 06:54:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ukAXUhMa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237552AbhHQNw7 (ORCPT + 99 others); Tue, 17 Aug 2021 09:52:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233288AbhHQNw6 (ORCPT ); Tue, 17 Aug 2021 09:52:58 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D7DDC061764; Tue, 17 Aug 2021 06:52:25 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id f9-20020a05600c1549b029025b0f5d8c6cso1972405wmg.4; Tue, 17 Aug 2021 06:52:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=DdliCquo+PE2UHrK1S/P5dg8iEQs9vB2EdH9vP1ZGv0=; b=ukAXUhMaFl3HyZReRiZG7YY3vvR3EZ42C2YpaD3yySq3MxnsezMQG3JPJ0iHUZwmg7 zYHZ7lxkodtLymgxdBDss+TZXGoHScQSmEe9DWPX10Q/rLbv5blkxly2VwWYfyd0OVk3 fShUeNF60iMwIYHIK0dhx9nWwR/50u9gt+1Z/PkHPdYdD3gOPKqMV3psHcWJA6UjezHH g2FgR6kPgFmhRKZa/SGebZ1Ai13YsILs3eku3KAmbPFjWEK9Dgf7T8Z62kbj78R/axAx WAevZ6At2ZvD0tC/GwMsWCTT1e/T0UrujmuGwSYoQhr50h38ftK4UNDAOVpttvqdOobB dIuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=DdliCquo+PE2UHrK1S/P5dg8iEQs9vB2EdH9vP1ZGv0=; b=FdWNlwk93PZMHdifb9IfWyk0P/OTGwV8sEIP7gHtxxbO9lXQrqCnmez8sa3oZkAiTJ n0OBcrhdF3fGblfoKWdQP0neKeJplekzTamDxfYr9H/QoAzR9XStP0ncLX1QjAZj26iY S0DFLOOUDRMNZsCIPjQd6fyxQIAB35dfjkcR4g+BZbszOcEEAoYNy1Y2/LBPZg4XP+wU Y6VzIphGmx5dCrIzosxk3DpP8P5OHqepZwdXFLuM00irM6P2A4/4uWd5JsnM4yPa+9vx oq2WZdUNELCE3F+S7A3KmYyjk/k7fulJdTxBdhplNZ+qT14zL4abj2cqEq5dv3BPhGrQ vSVA== X-Gm-Message-State: AOAM530cTfZFZ44l23zM5TmajPO5IS+jdbKENGduYRtZlkGBlBPUDwET 9r8vNsnJe3qPBMwZSxpuYHE= X-Received: by 2002:a1c:e90a:: with SMTP id q10mr3563409wmc.39.1629208343855; Tue, 17 Aug 2021 06:52:23 -0700 (PDT) Received: from localhost ([217.111.27.204]) by smtp.gmail.com with ESMTPSA id s1sm2118598wmh.46.2021.08.17.06.52.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Aug 2021 06:52:22 -0700 (PDT) Date: Tue, 17 Aug 2021 15:52:21 +0200 From: Thierry Reding To: Mark Brown , Bjorn Helgaas Cc: Aakash Hemadri , Liam Girdwood , Takashi Iwai , Jawoslav Kysela , Jonathan Hunter , Philipp Zabel , alsa-devel@alsa-project.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan Subject: Re: [PATCH 1/2] ASoC: tegra30: ahub: Use of_device_get_match_data Message-ID: References: <20210816183906.GC4253@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="TERzZgiTczMyTKLC" Content-Disposition: inline In-Reply-To: <20210816183906.GC4253@sirena.org.uk> User-Agent: Mutt/2.1.1 (e2a89abc) (2021-07-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --TERzZgiTczMyTKLC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 16, 2021 at 07:39:06PM +0100, Mark Brown wrote: > On Sun, Aug 15, 2021 at 01:42:18AM +0530, Aakash Hemadri wrote: >=20 > > - match =3D of_match_device(tegra30_ahub_of_match, &pdev->dev); > > + match =3D of_device_get_match_data(&pdev->dev); > > if (!match) >=20 > Thierry, are you sure about your review here? As others have been > pointing out of_device_get_match_data() returns match->data while > of_match_device() returns the device. Ugh... good catch. I (naively) assumed this was a mechanical conversion like one of the many others that have been making the rounds and evidently wasn't paying enough attention. Thanks for spotting this, Bjorn! Thierry --TERzZgiTczMyTKLC Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAmEbvxMACgkQ3SOs138+ s6Fuzw/+ONJup0AlXmkavB3mY/7ctPZCTYOEX1havOtaM0M7MC4gnILVLS15E5YQ VkfyauVywsYJZ58EigjcET0aWWyP1moX//MXamjC/QMbJYBbFHydpdSsTVdvXjpX j96kJMOQZ9ZIswQuZTNTU/ZkJltfjwLUT5ckt7jbc2PYMf/QqELtRAYEvbIG61oB /vngvh5S5RoCQCv+kyGLZDSvgpDay2H6Ko5Xs/2uBDtiZPo+OvH+NwzNRjpd4X8l 4VuOhc6mE2796HjZ4+JG7xJ1R4mvZsNB6/HTFeiGMQhzJciB+MZhWcnGKev1WZb/ P8n9sQzppOd9X8BtusuIKxsV/JIqmOfeRWNE2ARTkKS3UcJEduiARFb+5XO0MUxc xEGblAUU4dPztRK60nd/sHh2y/rbb2ChNs75WI9rTkI2o29js2yKCvdF7S2SPbGi p2yDgvJGzQRQyCz71wU2oLOE2rFv7QPLUjj8tMj08ZOyjD36UTXWXn7Av8csIWQe yvu8r/Upi1IRJAXtxKn/A4oCdEYy2ktBq54QCx16vJfTx1P6YBOKW2M2HcYEBjB1 6ilCGVVhd1XTLH/4A31gBXVtL4Wgx9gP9SbsXR1I6VFlwv0k2RZzsxc2v69hqJLm OGKwxyBUZZ4yOy7/9oxHB5vvVW94r0pGaU9Rxj38pjfMTRq7pWg= =CZLq -----END PGP SIGNATURE----- --TERzZgiTczMyTKLC--