Rusty Russell 626596e295 modpost: use a table rather than a giant if/else statement.
We look for symbols of form __mod_<busname>_device_table, and for all
but three cases we use a standard interation function (do_table) to
walk over the contents and dump out the aliases.

Alessandro Rubini did this first, I just repainted the bikeshed a bit.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Alessandro Rubini <rubini@gnudd.com>
2012-01-13 09:32:15 +10:30
..
2011-09-09 11:45:47 +02:00
2011-06-09 14:04:47 -04:00
2005-04-16 15:20:36 -07:00
2011-03-31 11:26:23 -03:00
2011-05-19 15:59:38 -07:00
2005-04-16 15:20:36 -07:00
2010-10-28 00:32:23 +02:00
2008-07-25 22:12:41 +02:00
2011-06-16 20:40:03 +02:00
2011-08-31 16:12:17 +02:00
2009-06-09 22:37:54 +02:00
2010-03-23 12:26:38 +01:00
2011-06-09 14:04:38 -04:00
2011-03-31 11:26:23 -03:00
2008-04-25 20:18:48 +02:00
2005-04-16 15:20:36 -07:00
2009-06-09 22:37:54 +02:00