]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[PATCH] smc91x: allow for dynamic bus access configs
authorNicolas Pitre <nico@cam.org>
Mon, 20 Mar 2006 16:54:27 +0000 (11:54 -0500)
committerJeff Garzik <jeff@garzik.org>
Tue, 21 Mar 2006 21:00:53 +0000 (16:00 -0500)
commit09779c6df2dbe95483269d194b327d41fe2cc57e
tree9ee7873eb248481bd06f73fdda79c019292c0e26
parentac62ef043504d5c754357325cd514553ddabb046
[PATCH] smc91x: allow for dynamic bus access configs

All accessor's different methods are now selected with C code and unused
ones statically optimized away at compile time instead of being selected
with #if's and #ifdef's.  This has many advantages such as allowing the
compiler to validate the syntax of the whole code, making it cleaner and
easier to understand, and ultimately allowing people to define
configuration symbols in terms of variables if they really want to
dynamically support multiple bus configurations at the same time (with
the unavoidable performance cost).

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/smc91x.c
drivers/net/smc91x.h