From: Aakash Hemadri <aakashhemadri123@gmail.com> To: Mark Brown <broonie@kernel.org>, Liam Girdwood <lgirdwood@gmail.com> Cc: Takashi Iwai <tiwai@suse.com>, Jawoslav Kysela <perex@perex.cz>, Thierry Reding <thierry.reding@gmail.com>, Jonathan Hunter <jonathanh@nvidia.com>, Philipp Zabel <p.zabel@pengutronix.de>, alsa-devel@alsa-project.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan <skhan@linuxfoundation.org>, Bjorn Helgaas <bjorn@helgaas.com> Subject: [PATCH 2/2] ASoC: tegra30: i2s: Use of_device_get_match_data Date: Sun, 15 Aug 2021 01:42:19 +0530 [thread overview] Message-ID: <f4e632e0023d90c43b2b927e752585142a9d9c26.1628971397.git.aakashhemadri123@gmail.com> (raw) In-Reply-To: <cover.1628971397.git.aakashhemadri123@gmail.com> Prefer `of_device_get_match_data` over `of_match_device` Retrieve OF match data using `of_device_get_match_data`, this is cleaner and better expresses intent. Signed-off-by: Aakash Hemadri <aakashhemadri123@gmail.com> --- sound/soc/tegra/tegra30_i2s.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/tegra/tegra30_i2s.c b/sound/soc/tegra/tegra30_i2s.c index 36344f0a64c1..d4c5594efaf1 100644 --- a/sound/soc/tegra/tegra30_i2s.c +++ b/sound/soc/tegra/tegra30_i2s.c @@ -418,7 +418,7 @@ static int tegra30_i2s_platform_probe(struct platform_device *pdev) } dev_set_drvdata(&pdev->dev, i2s); - match = of_match_device(tegra30_i2s_of_match, &pdev->dev); + match = of_device_get_match_data(&pdev->dev); if (!match) { dev_err(&pdev->dev, "Error: No device match found\n"); ret = -ENODEV; -- 2.32.0
WARNING: multiple messages have this Message-ID (diff)
From: Aakash Hemadri <aakashhemadri123@gmail.com> To: Mark Brown <broonie@kernel.org>, Liam Girdwood <lgirdwood@gmail.com> Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Takashi Iwai <tiwai@suse.com>, Jonathan Hunter <jonathanh@nvidia.com>, Bjorn Helgaas <bjorn@helgaas.com>, Thierry Reding <thierry.reding@gmail.com>, Philipp Zabel <p.zabel@pengutronix.de>, Shuah Khan <skhan@linuxfoundation.org>, linux-tegra@vger.kernel.org Subject: [PATCH 2/2] ASoC: tegra30: i2s: Use of_device_get_match_data Date: Sun, 15 Aug 2021 01:42:19 +0530 [thread overview] Message-ID: <f4e632e0023d90c43b2b927e752585142a9d9c26.1628971397.git.aakashhemadri123@gmail.com> (raw) In-Reply-To: <cover.1628971397.git.aakashhemadri123@gmail.com> Prefer `of_device_get_match_data` over `of_match_device` Retrieve OF match data using `of_device_get_match_data`, this is cleaner and better expresses intent. Signed-off-by: Aakash Hemadri <aakashhemadri123@gmail.com> --- sound/soc/tegra/tegra30_i2s.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/tegra/tegra30_i2s.c b/sound/soc/tegra/tegra30_i2s.c index 36344f0a64c1..d4c5594efaf1 100644 --- a/sound/soc/tegra/tegra30_i2s.c +++ b/sound/soc/tegra/tegra30_i2s.c @@ -418,7 +418,7 @@ static int tegra30_i2s_platform_probe(struct platform_device *pdev) } dev_set_drvdata(&pdev->dev, i2s); - match = of_match_device(tegra30_i2s_of_match, &pdev->dev); + match = of_device_get_match_data(&pdev->dev); if (!match) { dev_err(&pdev->dev, "Error: No device match found\n"); ret = -ENODEV; -- 2.32.0
next prev parent reply other threads:[~2021-08-14 20:12 UTC|newest] Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-08-14 20:12 [PATCH 0/2] ASoC: tegra: Use of_device_get_match_data Aakash Hemadri 2021-08-14 20:12 ` Aakash Hemadri 2021-08-14 20:12 ` [PATCH 1/2] ASoC: tegra30: ahub: " Aakash Hemadri 2021-08-14 20:12 ` Aakash Hemadri 2021-08-16 9:54 ` Thierry Reding 2021-08-16 9:54 ` Thierry Reding 2021-08-16 18:02 ` Bjorn Helgaas 2021-08-16 18:02 ` Bjorn Helgaas 2021-08-16 18:39 ` Mark Brown 2021-08-16 18:39 ` Mark Brown 2021-08-16 19:46 ` Aakash Hemadri 2021-08-16 19:46 ` Aakash Hemadri 2021-08-16 19:49 ` Mark Brown 2021-08-16 19:49 ` Mark Brown 2021-08-16 19:58 ` Aakash Hemadri 2021-08-16 19:58 ` Aakash Hemadri 2021-08-17 13:52 ` Thierry Reding 2021-08-17 13:52 ` Thierry Reding 2021-08-14 20:12 ` Aakash Hemadri [this message] 2021-08-14 20:12 ` [PATCH 2/2] ASoC: tegra30: i2s: " Aakash Hemadri 2021-08-16 9:54 ` Thierry Reding 2021-08-16 9:54 ` Thierry Reding 2021-08-16 17:04 ` [PATCH 0/2] ASoC: tegra: " Mark Brown 2021-08-16 17:04 ` Mark Brown
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=f4e632e0023d90c43b2b927e752585142a9d9c26.1628971397.git.aakashhemadri123@gmail.com \ --to=aakashhemadri123@gmail.com \ --cc=alsa-devel@alsa-project.org \ --cc=bjorn@helgaas.com \ --cc=broonie@kernel.org \ --cc=jonathanh@nvidia.com \ --cc=lgirdwood@gmail.com \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-tegra@vger.kernel.org \ --cc=p.zabel@pengutronix.de \ --cc=perex@perex.cz \ --cc=skhan@linuxfoundation.org \ --cc=thierry.reding@gmail.com \ --cc=tiwai@suse.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.