LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* default functions for gpio
@ 2007-03-23 20:28 NZG
0 siblings, 0 replies; only message in thread
From: NZG @ 2007-03-23 20:28 UTC (permalink / raw)
To: linux-kernel
WHY I"M ASKING THIS QUESTION:
I'm implementing some gpio calls in the ep93xx arch.
My problem is that gpio's are really board specific, not just mach specific.
I can code the function calls into my board init, but where should these
functions be prototyped?
Ideally, I think the compiler should build a "default" function for
int gpio_request which fails, rather than a compile error for other boards
within the same arch.
THE ACTUAL QUESTION:
Is there a way to build a "default" function, which is compiled in if it's not
defined elsewhere? Anyone know where an example of this might be lurking.
Also, if this is possible, is it a good idea?
thx,
NZG
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-03-23 20:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-23 20:28 default functions for gpio NZG
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).