summaryrefslogtreecommitdiff
path: root/include/linux/mcb.h
diff options
context:
space:
mode:
authorMichael Moese <michael.moese@men.de>2016-09-14 13:05:24 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-27 13:33:47 +0300
commit2d8784df1a1c11ace4e244780facec1e945c5b4f (patch)
tree5a29e7d2bcd98873dd13470ac492206a0b1292fa /include/linux/mcb.h
parent15bb81d334e99081e105b76e6d0b46657b4f4f2e (diff)
downloadlinux-2d8784df1a1c11ace4e244780facec1e945c5b4f.tar.xz
mcb: Add a dma_device to mcb_device
When performing DMA operations on a MCB device, the device needed for using the DMA API is "mcb_device->bus_carrier". This is rather lengthy, so a shortcut is introduced to struct mcb_device in order to ensure the MCB device driver uses the correct device for DMA operations. Signed-off-by: Michael Moese <michael.moese@men.de> Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/mcb.h')
-rw-r--r--include/linux/mcb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mcb.h b/include/linux/mcb.h
index ee5200d660b0..4097ac9ea13a 100644
--- a/include/linux/mcb.h
+++ b/include/linux/mcb.h
@@ -76,6 +76,7 @@ struct mcb_device {
int rev;
struct resource irq;
struct resource mem;
+ struct device *dma_dev;
};
static inline struct mcb_device *to_mcb_device(struct device *dev)