projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1508f32
)
ASoC: intel: Avoid non-standard macro usage
author
Takashi Iwai
<tiwai@suse.de>
Fri, 8 Nov 2019 09:46:37 +0000
(10:46 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Sat, 9 Nov 2019 17:02:53 +0000
(18:02 +0100)
Pass the device pointer from the PCI pointer directly, instead of a
non-standard macro. The macro didn't give any better readability.
Acked-by: Mark Brown <broonie@kernel.org>
Link:
https://lore.kernel.org/r/20191108094641.20086-5-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/soc/intel/skylake/skl-pcm.c
patch
|
blob
|
history
diff --git
a/sound/soc/intel/skylake/skl-pcm.c
b/sound/soc/intel/skylake/skl-pcm.c
index
6bd14f6
..
8b9abb7
100644
(file)
--- a/
sound/soc/intel/skylake/skl-pcm.c
+++ b/
sound/soc/intel/skylake/skl-pcm.c
@@
-1314,7
+1314,7
@@
static int skl_platform_soc_new(struct snd_soc_component *component,
size = MAX_PREALLOC_SIZE;
snd_pcm_lib_preallocate_pages_for_all(pcm,
SNDRV_DMA_TYPE_DEV_SG,
-
snd_dma_pci_data(skl->pci)
,
+
&skl->pci->dev
,
size, MAX_PREALLOC_SIZE);
}