summaryrefslogtreecommitdiffstats
path: root/drivers/vfio/pci/vfio_pci_rdwr.c
diff options
context:
space:
mode:
authorAlex Williamson2013-02-14 22:02:12 +0100
committerAlex Williamson2013-02-14 22:02:12 +0100
commit5b279a11d32998aad1e45fe9de225302b6a8e8ba (patch)
treedf22b9de21b3183175ac393d410d15a45bda8a30 /drivers/vfio/pci/vfio_pci_rdwr.c
parentvfio-pci: Enable PCIe extended capabilities on v1 (diff)
downloadkernel-qcow2-linux-5b279a11d32998aad1e45fe9de225302b6a8e8ba.tar.gz
kernel-qcow2-linux-5b279a11d32998aad1e45fe9de225302b6a8e8ba.tar.xz
kernel-qcow2-linux-5b279a11d32998aad1e45fe9de225302b6a8e8ba.zip
vfio-pci: Cleanup read/write functions
The read and write functions are nearly identical, combine them and convert to a switch statement. This also makes it easy to narrow the scope of when we use the io/mem accessors in case new regions are added. Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/vfio/pci/vfio_pci_rdwr.c')
0 files changed, 0 insertions, 0 deletions