[U-Boot] [PATCH 07/12] x86: Simplify codes in write_tables()

Simon Glass sjg at chromium.org
Mon Feb 29 05:19:31 CET 2016


On 27 February 2016 at 23:58, Bin Meng <bmeng.cn at gmail.com> wrote:
> Given all table write routines have the same signature, we can use
> simplify the codes by using a function table.
>
> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
> ---
>
>  arch/x86/lib/tables.c | 61 ++++++++++++++++++++++++++++-----------------------
>  1 file changed, 34 insertions(+), 27 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>

We could even use a linker list.


More information about the U-Boot mailing list