From: Rusty Russell Date: Thu, 12 Jan 2012 23:02:15 +0000 (+1030) Subject: modpost: use a table rather than a giant if/else statement. X-Git-Tag: v3.3-rc1~66^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=626596e295d477c0fefa08cd5daa7dd011b1bb2c;p=pandora-kernel.git modpost: use a table rather than a giant if/else statement. We look for symbols of form __mod__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 Cc: Alessandro Rubini --- Reading git-diff-tree failed