sandbox: pci: Move pci_offset_to_barnum() to pci.h
authorSimon Glass <sjg@chromium.org>
Wed, 25 Sep 2019 14:56:06 +0000 (08:56 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 8 Oct 2019 05:57:40 +0000 (13:57 +0800)
commit37a1cf9c9c4c670e074feb8fb2fc6b4a40a80b1b
tree3424513b1fc8f6a8864b5ceaa5e075dde0222510
parentfae2c16ede7bf00c8f7873a96fc2b34d5345d751
sandbox: pci: Move pci_offset_to_barnum() to pci.h

This function is useful in PCI emulators. More it into the header file to
avoid duplicating it in other drivers.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/misc/swap_case.c
include/pci.h