Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: aoa: Avoid non-standard macro usage

Pass the device pointer from the PCI pointer directly, instead of a
non-standard macro. The macro didn't give any better readability.

Link: https://lore.kernel.org/r/20191105151856.10785-20-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>

+1 -1
+1 -1
sound/aoa/soundbus/i2sbus/pcm.c
··· 1028 1028 /* well, we really should support scatter/gather DMA */ 1029 1029 snd_pcm_lib_preallocate_pages_for_all( 1030 1030 dev->pcm, SNDRV_DMA_TYPE_DEV, 1031 - snd_dma_pci_data(macio_get_pci_dev(i2sdev->macio)), 1031 + &macio_get_pci_dev(i2sdev->macio)->dev, 1032 1032 64 * 1024, 64 * 1024); 1033 1033 1034 1034 return 0;