This is second generation of the patch series to reduce code size of the 8250_pci.c driver by using formula approach instead of switch-case. Previous can be found here [1]. There is [2] a gist in Python which represents the algorithm. The changes were tested on Intel Medfield, Tangier, and Braswell. [1] http://www.spinics.net/lists/linux-serial/msg16343.html [2] https://gist.github.com/8b2a73aeca2874f4cc89.git Changelog v2: - completely rewritten... - ...thus addressed comments by Peter and Heikki Andy Shevchenko (2): serial: 8250_pci: replace switch-case by formula serial: 8250_pci: replace switch-case by formula for Intel MID drivers/tty/serial/8250/8250_pci.c | 114 +++++++++++++------------------------ drivers/tty/serial/8250/Kconfig | 1 + 2 files changed, 40 insertions(+), 75 deletions(-) -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html