From: Guennadi Liakhovetski Date: Wed, 9 May 2012 15:09:14 +0000 (+0200) Subject: dma: shdma: prepare for conversion to the shdma base library X-Git-Tag: upstream/snapshot3+hdmi~6981^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5902c9a7a2a9c2520af54af1ba7a9c7831664a17;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git dma: shdma: prepare for conversion to the shdma base library 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 Signed-off-by: Vinod Koul --- diff --git a/include/linux/sh_dma.h b/include/linux/sh_dma.h index 425450b..e081e8e 100644 --- a/include/linux/sh_dma.h +++ b/include/linux/sh_dma.h @@ -10,12 +10,16 @@ #ifndef SH_DMA_H #define SH_DMA_H -#include #include +#include +#include /* 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 */ };