linux/arch/arm/mach-s3c64xx
Arnd Bergmann b9a1a74381 ASoC: samsung: pass DMA channels as pointers
ARM64 allmodconfig produces a bunch of warnings when building the
samsung ASoC code:

sound/soc/samsung/dmaengine.c: In function 'samsung_asoc_init_dma_data':
sound/soc/samsung/dmaengine.c:53:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   playback_data->filter_data = (void *)playback->channel;
sound/soc/samsung/dmaengine.c:60:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   capture_data->filter_data = (void *)capture->channel;

We could easily shut up the warning by adding an intermediate cast,
but there is a bigger underlying problem: The use of IORESOURCE_DMA
to pass data from platform code to device drivers is dubious to start
with, as what we really want is a pointer that can be passed into
a filter function.

Note that on s3c64xx, the pl08x DMA data is already a pointer, but
gets cast to resource_size_t so we can pass it as a resource, and it
then gets converted back to a pointer. In contrast, the data we pass
for s3c24xx is an index into a device specific table, and we artificially
convert that into a pointer for the filter function.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2015-11-18 17:51:46 +00:00
..
include/mach ASoC: samsung: pass DMA channels as pointers 2015-11-18 17:51:46 +00:00
ata-core.h ARM: SAMSUNG: local ata-core header in mach-s3c64xx 2015-07-30 02:00:36 +09:00
backlight.h ARM: SAMSUNG: local backlight header in mach-s3c64xx 2015-07-30 02:00:36 +09:00
common.c genirq: Remove irq argument from irq flow handlers 2015-09-16 15:47:51 +02:00
common.h ARM: s3c64xx: Leave disabling of unused PM domains to genpd 2014-09-09 00:46:12 +02:00
cpuidle.c ARM: cpuidle: Remove duplicate header inclusion 2015-03-23 18:03:11 +01:00
crag6410.h ARM: S3C64XX: Use fixed IRQ bases to avoid conflicts on Cragganmore 2015-03-27 01:58:08 +09:00
dev-audio.c ASoC: samsung: pass DMA channels as pointers 2015-11-18 17:51:46 +00:00
dev-backlight.c ARM: S3C64XX: Use PWM lookup table for smdk6410 2015-10-13 05:04:22 +09:00
dev-uart.c
irq-pm.c ARM: SoC: cleanups for 3.15 2014-04-05 13:51:19 -07:00
irq-uart.h ARM: SAMSUNG: local irq-uart header in mach-s3c64xx 2015-07-30 02:00:38 +09:00
Kconfig ARM: SAMSUNG: make local dev-backlight in mach-s3c64xx 2015-07-30 01:48:58 +09:00
mach-anw6410.c ARM: s3c64xx: Leave disabling of unused PM domains to genpd 2014-09-09 00:46:12 +02:00
mach-crag6410-module.c ARM: S3C64XX: mach-crag6410-module.c is not modular 2014-02-16 02:05:44 +09:00
mach-crag6410.c ARM: SoC platform updates for v4.4 2015-11-10 14:56:23 -08:00
mach-hmt.c ARM: S3C64XX: Use PWM lookup table for mach-hmt 2015-10-13 05:04:22 +09:00
mach-mini6410.c ARM: s3c64xx: Leave disabling of unused PM domains to genpd 2014-09-09 00:46:12 +02:00
mach-ncp.c ARM: s3c64xx: Leave disabling of unused PM domains to genpd 2014-09-09 00:46:12 +02:00
mach-real6410.c ARM: s3c64xx: Leave disabling of unused PM domains to genpd 2014-09-09 00:46:12 +02:00
mach-s3c64xx-dt.c Samsung cleanup for v4.3 2015-08-11 14:59:02 +02:00
mach-smartq.c ARM: SoC platform updates for v4.4 2015-11-10 14:56:23 -08:00
mach-smartq.h
mach-smartq5.c ARM: s3c64xx: Leave disabling of unused PM domains to genpd 2014-09-09 00:46:12 +02:00
mach-smartq7.c ARM: s3c64xx: Leave disabling of unused PM domains to genpd 2014-09-09 00:46:12 +02:00
mach-smdk6400.c ARM: s3c64xx: Leave disabling of unused PM domains to genpd 2014-09-09 00:46:12 +02:00
mach-smdk6410.c ARM: SoC platform updates for v4.4 2015-11-10 14:56:23 -08:00
Makefile ARM: SAMSUNG: make local dev-backlight in mach-s3c64xx 2015-07-30 01:48:58 +09:00
Makefile.boot
onenand-core.h ARM: SAMSUNG: local onenand-core header in mach-s3c64xx 2015-07-30 02:00:47 +09:00
pl080.c ARM: s3c64xx: Add support for DMA using generic amba-pl08x driver 2013-11-24 14:38:24 +00:00
pm.c ARM: S3C64XX: fix building without CONFIG_PM_SLEEP 2015-02-27 05:50:22 +09:00
regs-gpio-memport.h
regs-modem.h
regs-srom.h ARM: S3C64XX: make regs-srom.h local 2013-01-10 10:45:39 -08:00
regs-sys.h ARM: S3C64XX: make regs-sys.h local 2013-01-10 10:45:40 -08:00
regs-syscon-power.h ARM: S3C64XX: make regs-syscon-power.h local 2013-01-10 10:45:40 -08:00
regs-usb-hsotg-phy.h ARM: SAMSUNG: local regs-usb-hsotg-phy header in mach-s3c64xx 2015-07-30 02:00:36 +09:00
s3c6400.c ARM: SAMSUNG: local onenand-core header in mach-s3c64xx 2015-07-30 02:00:47 +09:00
s3c6410.c ARM: SAMSUNG: local onenand-core header in mach-s3c64xx 2015-07-30 02:00:47 +09:00
setup-fb-24bpp.c ARM: S3C[24|64]xx: move includes back under <mach/> scope 2014-01-14 15:24:06 +01:00
setup-i2c0.c ARM: S3C[24|64]xx: move includes back under <mach/> scope 2014-01-14 15:24:06 +01:00
setup-i2c1.c ARM: S3C[24|64]xx: move includes back under <mach/> scope 2014-01-14 15:24:06 +01:00
setup-ide.c ARM: S3C[24|64]xx: move includes back under <mach/> scope 2014-01-14 15:24:06 +01:00
setup-keypad.c ARM: S3C[24|64]xx: move includes back under <mach/> scope 2014-01-14 15:24:06 +01:00
setup-sdhci-gpio.c ARM: S3C[24|64]xx: move includes back under <mach/> scope 2014-01-14 15:24:06 +01:00
setup-spi.c ARM: S3C[24|64]xx: move includes back under <mach/> scope 2014-01-14 15:24:06 +01:00
setup-usb-phy.c ARM: SAMSUNG: local regs-usb-hsotg-phy header in mach-s3c64xx 2015-07-30 02:00:36 +09:00
sleep.S
watchdog-reset.h ARM: SAMSUNG: local watchdog-reset header in mach-s3c64xx 2015-07-30 02:00:52 +09:00