diff options
| author | David Brownell <david-b@pacbell.net> | 2004-03-11 00:39:08 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <greg@kroah.com> | 2004-03-11 00:39:08 -0800 |
| commit | 731ea3e983eff5a364bc2c81bc91d3c4eb6d8f51 (patch) | |
| tree | 9a8a567421c61a82d18e46a61ef495716792744e /include/linux | |
| parent | ddd53405bdecb7778056cfbbbc9ca7229b8a5c7d (diff) | |
[PATCH] USB Gadget: add "gadget_chips.h"
This adds standard gadget_is_*() calls. Gadget drivers using
those calls can get rid of some inlined #ifdefs, and will also
be able to do more "late binding" to their hardware.
Define gadget_is_*() calls, to help do late binding to USB controllers.
Current gadget drivers expect to know at compile time what hardware
they'll bind to. That's not very friendly to a generic PDA distro,
which might prefer to defer such choices to run time.
These macros let drivers change that code from inlined #ifdefs (ugh) to
normal C statements (looks much nicer), so making those "what hardware"
policy choices at run time gets easier.
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
