lkml.org 
[lkml]   [2007]   [Mar]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
Subjectdefault functions for gpio
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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-03-23 21:31    [W:0.031 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site