projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
206110c
)
ASoC: dwc: Use ops to get platform data
author
Xingyu Wu
<xingyu.wu@starfivetech.com>
Mon, 21 Aug 2023 14:41:48 +0000
(22:41 +0800)
committer
Mark Brown
<broonie@kernel.org>
Wed, 23 Aug 2023 12:56:39 +0000
(13:56 +0100)
Use of_device_get_match_data() to get platform data.
Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
Link:
https://lore.kernel.org/r/20230821144151.207339-3-xingyu.wu@starfivetech.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/dwc/dwc-i2s.c
patch
|
blob
|
history
diff --git
a/sound/soc/dwc/dwc-i2s.c
b/sound/soc/dwc/dwc-i2s.c
index 0a4698008d64c13e7079244c731e6207014a50c5..e70d41d57dfd3f03df6432f4391ebb559aebcafa 100644
(file)
--- a/
sound/soc/dwc/dwc-i2s.c
+++ b/
sound/soc/dwc/dwc-i2s.c
@@
-691,7
+691,7
@@
static int dw_configure_dai_by_dt(struct dw_i2s_dev *dev,
static int dw_i2s_probe(struct platform_device *pdev)
{
- const struct i2s_platform_data *pdata =
pdev->dev.platform_data
;
+ const struct i2s_platform_data *pdata =
of_device_get_match_data(&pdev->dev)
;
struct dw_i2s_dev *dev;
struct resource *res;
int ret, irq;