sandbox: pci: Create a new sandbox_pci_read_bar() function
authorSimon Glass <sjg@chromium.org>
Wed, 25 Sep 2019 14:56:42 +0000 (08:56 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 8 Oct 2019 05:57:48 +0000 (13:57 +0800)
commit75d8f49481a5c260d0cf1024d41f0b29d57e0efe
treef434a546d0cc97e9cad48f59e54902d1307fad24
parent594d272cfd3dc43f118efb952676715b0382af24
sandbox: pci: Create a new sandbox_pci_read_bar() function

The code in swapcase can be used by other sandbox drivers. Move it into a
common place to allow this.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
[bmeng: remove inclusion of <asm/test.h> in pci_sandbox.c]
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
arch/sandbox/include/asm/test.h
drivers/misc/Makefile
drivers/misc/swap_case.c
drivers/pci/pci-emul-uclass.c