pci: Use common functions to read/write config
authorSimon Glass <sjg@chromium.org>
Fri, 27 Nov 2015 02:51:26 +0000 (19:51 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 1 Dec 2015 13:26:37 +0000 (06:26 -0700)
commit72ef5b608cae42c7699c3488dd7465bd8f573acc
tree832245abe91e27414c478b286cdd3a53e2576cdb
parentc2be0700725fa3af5c6c925df8762acbd0a73883
pci: Use common functions to read/write config

Currently we use switch() and access PCI configuration via several
functions, one for each data size. Adjust the code to use generic functions,
where the data size is a parameter.

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