Thread (74 messages) 74 messages, 3 authors, 2012-09-03

Re: [PATCH v2 03/23] OMAPDSS: output: Add set/unset device ops for omap_dss_output

From: Tomi Valkeinen <hidden>
Date: 2012-08-31 12:28:48
Also in: linux-omap

On Fri, 2012-08-31 at 17:54 +0530, Archit Taneja wrote:
On Friday 31 August 2012 05:33 PM, Tomi Valkeinen wrote:
quoted
I don't think there's need for this indirection. We should use function
pointers only when the func pointer may lead to different functions.
Here we'll always have just one function, dss_output_set_device. We can
as well call the function directly.
Okay. I understand that. But in general, don't func pointers prevent us 
from exporting more symbols?
Yes. But I'm not sure if there's any real downside to exporting, as long
as the names are prefixed properly so that there are no name clashes.
quoted
I know we have similar func pointers for ovls/mgrs currently, but I
don't think they are good either. They are a relic from the time we
supported "virtual" overlays and managers, and thus could have different
implementations for the operations.
Oh okay, I guess you mean the L4/sDMA updates for DSI command mode.
Yep.

 Tomi

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help