summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2026-05-29 01:19:28 +0300
committerMark Brown <broonie@kernel.org>2026-06-04 13:31:26 +0300
commitce3d971735bbcb50c43c670c98fac0bfd20f8304 (patch)
tree6776a39bd5b224fee92193b91e10d3106e7aad17
parent66c75c7e04983f96f6b2f467305eea404aa096d7 (diff)
downloadlinux-ce3d971735bbcb50c43c670c98fac0bfd20f8304.tar.xz
ASoC: tegra: ADX: use of_device_get_match_data
Remove open coding of the function to simplify the code. Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://patch.msgid.link/20260528221928.142511-1-rosenp@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/tegra/tegra210_adx.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/soc/tegra/tegra210_adx.c b/sound/soc/tegra/tegra210_adx.c
index 12371f895234..9b662fcee66f 100644
--- a/sound/soc/tegra/tegra210_adx.c
+++ b/sound/soc/tegra/tegra210_adx.c
@@ -677,8 +677,7 @@ static int tegra210_adx_platform_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
struct tegra210_adx *adx;
- const struct of_device_id *match;
- struct tegra210_adx_soc_data *soc_data;
+ const struct tegra210_adx_soc_data *soc_data;
void __iomem *regs;
int err, i;
@@ -686,8 +685,7 @@ static int tegra210_adx_platform_probe(struct platform_device *pdev)
if (!adx)
return -ENOMEM;
- match = of_match_device(tegra210_adx_of_match, dev);
- soc_data = (struct tegra210_adx_soc_data *)match->data;
+ soc_data = of_device_get_match_data(dev);
adx->soc_data = soc_data;
dev_set_drvdata(dev, adx);