From: NZG <ngustavson@emacinc.com>
To: linux-kernel@vger.kernel.org
Subject: default functions for gpio
Date: Fri, 23 Mar 2007 15:28:10 -0500 [thread overview]
Message-ID: <200703231528.10508.ngustavson@emacinc.com> (raw)
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
reply other threads:[~2007-03-23 20:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200703231528.10508.ngustavson@emacinc.com \
--to=ngustavson@emacinc.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®