pci: Refactor the pciinfo() function
authorSimon Glass <sjg@chromium.org>
Fri, 27 Nov 2015 02:51:20 +0000 (19:51 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 1 Dec 2015 13:26:37 +0000 (06:26 -0700)
commit07a588704c3020bd29a1c27e85570592ce665592
treed0c23829ed9afacfcbeb2b801da0d3bbe8bb6832
parentca7de76d8c5a12e178593770e0d2272cca2596bb
pci: Refactor the pciinfo() function

This function uses macros to output data. It seems better to use a table of
registers rather than macro-based code generation. It also reduces the
code/data size by 2KB on ARM.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
common/cmd_pci.c