projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80165bb
)
ASoC: tegra30: i2s: Use of_device_get_match_data
author
Aakash Hemadri
<aakashhemadri123@gmail.com>
Sat, 14 Aug 2021 20:12:19 +0000
(
01:42
+0530)
committer
Mark Brown
<broonie@kernel.org>
Mon, 16 Aug 2021 12:30:38 +0000
(13:30 +0100)
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>
Acked-by: Thierry Reding <treding@nvidia.com>
Link:
https://lore.kernel.org/r/f4e632e0023d90c43b2b927e752585142a9d9c26.1628971397.git.aakashhemadri123@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/tegra/tegra30_i2s.c
patch
|
blob
|
history
diff --git
a/sound/soc/tegra/tegra30_i2s.c
b/sound/soc/tegra/tegra30_i2s.c
index
36344f0
..
d4c5594
100644
(file)
--- 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;