[PATCH] USB Gadget: add "gadget_chips.h"
commit731ea3e983eff5a364bc2c81bc91d3c4eb6d8f51
authorDavid Brownell <david-b@pacbell.net>
Thu, 11 Mar 2004 08:39:08 +0000 (11 00:39 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Thu, 11 Mar 2004 08:39:08 +0000 (11 00:39 -0800)
tree9a8a567421c61a82d18e46a61ef495716792744e
parentddd53405bdecb7778056cfbbbc9ca7229b8a5c7d
[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.
drivers/usb/gadget/gadget_chips.h [new file with mode: 0644]