mcb: Add a dma_device to mcb_device
authorMichael Moese <michael.moese@men.de>
Wed, 14 Sep 2016 10:05:24 +0000 (12:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Sep 2016 10:33:47 +0000 (12:33 +0200)
commit2d8784df1a1c11ace4e244780facec1e945c5b4f
tree5a29e7d2bcd98873dd13470ac492206a0b1292fa
parent15bb81d334e99081e105b76e6d0b46657b4f4f2e
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>
drivers/mcb/mcb-core.c
include/linux/mcb.h