dma: shdma: prepare for conversion to the shdma base library
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Wed, 9 May 2012 15:09:14 +0000 (17:09 +0200)
committerVinod Koul <vinod.koul@linux.intel.com>
Fri, 13 Jul 2012 03:43:07 +0000 (09:13 +0530)
By placing an anonymous union at the top of struct sh_dmae_slave we can
transparently prepare all device and client drivers for the upcoming
shdma-base conversion.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
include/linux/sh_dma.h

index 425450b980b8a8e60ea532b76702d552c3da6857..e081e8e8d1099879f96685d3ea90fbb72f09df8c 100644 (file)
 #ifndef SH_DMA_H
 #define SH_DMA_H
 
-#include <linux/list.h>
 #include <linux/dmaengine.h>
+#include <linux/list.h>
+#include <linux/shdma-base.h>
 
 /* Used by slave DMA clients to request DMA to/from a specific peripheral */
 struct sh_dmae_slave {
-       unsigned int                    slave_id; /* Set by the platform */
+       union {
+               unsigned int            slave_id; /* Set by the platform */
+               struct shdma_slave      shdma_slave;
+       };
        struct device                   *dma_dev; /* Set by the platform */
        const struct sh_dmae_slave_config       *config;  /* Set by the driver */
 };
This page took 0.025956 seconds and 5 git commands to generate.