x86: Simplify codes in write_tables()
authorBin Meng <bmeng.cn@gmail.com>
Sun, 28 Feb 2016 06:58:01 +0000 (22:58 -0800)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 17 Mar 2016 02:27:22 +0000 (10:27 +0800)
commitef4d0a524eb1929354b01036830799261090fcbe
treefc5821181947842908f93a9f62f5a05966949e73
parent358bb3ff5bb3a412aa784e7d1a4d6faf2fc6c8ae
x86: Simplify codes in write_tables()

Given all table write routines have the same signature, we can
simplify the codes by using a function table.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/x86/lib/tables.c