vfio-pci: Cleanup read/write functions
authorAlex Williamson <alex.williamson@redhat.com>
Thu, 14 Feb 2013 21:02:12 +0000 (14:02 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 14 Feb 2013 21:02:12 +0000 (14:02 -0700)
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>

No differences found