
28 Nov
2015
28 Nov
'15
5:55 p.m.
On 26 November 2015 at 23:37, Bin Meng bmeng.cn@gmail.com wrote:
On Fri, Nov 27, 2015 at 10:51 AM, Simon Glass sjg@chromium.org wrote:
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
Changes in v3:
- Fix mix-up between PCI_SIZE_xx and byte size
Changes in v2:
- Add back the leading 0 in the printf() statements
common/cmd_pci.c | 74 ++++++++++++++++++++++++-------------------------------- 1 file changed, 31 insertions(+), 43 deletions(-)
[snip]
Reviewed-by: Bin Meng bmeng.cn@gmail.com Tested-by: Bin Meng bmeng.cn@gmail.com
Applied to u-boot-dm.