[PATCH] IMX/SDMA : save the real count for one DMA transaction.

Wolfram Sang w.sang at pengutronix.de
Wed Nov 23 06:06:26 EST 2011


> >> +	/* save the real count we received or transmitted. */
> >> +	chan->private = (void *)count;
> > And if someone later needs another variable which is private?
> >
> I ever wanted to add an new parameter `void *` to dma_aync_tx_callback,
> but it seemed i have
> to change a lot of files.
> 
> Do you have any better suggestion?

Use a private struct and put count in there.

-- 
Pengutronix e.K.                           | Wolfram Sang                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20111123/79e7a6d7/attachment.sig>


More information about the linux-arm-kernel mailing list