x86/PCI: Simplify pci_bios_{read,write}
authorGeliang Tang <geliangtang@163.com>
Mon, 7 Dec 2015 14:24:24 +0000 (22:24 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 11 Dec 2015 01:38:07 +0000 (19:38 -0600)
commit96ae6469ba16ae502d2b2db4b5c9b7c846262999
tree2b293b96b1a753e9070eccbafc012777c58fc4d4
parent8e5a395a040a7c72ec283f844eca679b924f5f01
x86/PCI: Simplify pci_bios_{read,write}

There is some repetitive code in the switch/case statements in
pci_bios_read() and pci_bios_write().  Factor out the BIOS function
IDs and the result widths to simplify the code.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/pci/pcbios.c