Thread (23 messages) flat view 23 messages, 6 authors, 2011-07-16
STALE5516d

[PATCH V2 05/12] ARM: SAMSUNG: Add common DMA operations

From: Grant Likely <hidden>
Date: 2011-07-16 00:50:03
Also in: linux-samsung-soc

On Sat, Jul 16, 2011 at 09:39:31AM +0900, Boojin Kim wrote:
Grant Likely wrote:
quoted
quoted
+void *samsung_dma_get_ops(void)
+{
+	return (void *)&dmaeng_ops;
+}
+EXPORT_SYMBOL(samsung_dma_get_ops);
If all that is needed is a reference to the dma ops, then you could
simply export samsung_dmaeng_ops() without a separate function.
Grant, Thanks for your comments. I can't understand this comment well.
Do you mean to change function name from 'samsung_dma_get_ops()' to
'samsung_dmaeng_ops()' ?
Or export 'dmaeng_ops' variable instead of making this
'samsung_dma_get_ops()' function
I mean export dmaeng_ops instead of using a function.  You also get
some type checking by not casting it into a (void*).
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help