Skip to content

Commit

Permalink
dma: shdma: prepare for conversion to the shdma base library
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Guennadi Liakhovetski authored and Vinod Koul committed Jul 13, 2012
1 parent 9a7b8e0 commit 5902c9a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions include/linux/sh_dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@
#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 */
};
Expand Down

0 comments on commit 5902c9a

Please sign in to comment.