Files
linux/include/linux/platform_data
Arnd Bergmann e08f9a7c0e ASoC: samsung: pass DMA channels as pointers
commit b9a1a74381 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-04-12 09:08:32 -07:00
..
2012-10-19 18:46:51 +01:00
2012-09-17 20:55:54 +01:00
2012-06-30 10:15:07 +01:00
2013-06-11 20:25:58 +01:00
2012-09-08 10:20:09 +01:00
2014-02-19 13:36:15 +09:00
2012-12-05 10:55:54 -08:00
2012-07-11 15:36:45 -07:00
2013-04-29 18:28:13 -07:00
2015-10-17 21:22:08 -07:00
2014-01-02 03:30:35 -05:00
2013-06-04 21:03:56 +09:00
2015-07-27 01:10:29 -07:00
2014-01-14 21:36:53 -08:00
2012-09-14 08:14:07 +05:30
2015-10-27 04:21:14 +01:00
2013-12-11 10:56:21 -05:00
2012-09-18 12:28:22 +02:00
2014-01-14 21:36:53 -08:00
2013-05-25 10:33:30 -04:00