virtio: use size-based config accessors.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 14 Oct 2013 07:41:51 +0000 (18:11 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 17 Oct 2013 00:25:37 +0000 (10:55 +1030)
commit855e0c5288177bcb193f6f6316952d2490478e1c
tree7c5cfed44c9def1a7ca3388f37a9520de52af44b
parent0b90d0622ad290b3717a13489b396af52aea9d2d
virtio: use size-based config accessors.

This lets the transport do endian conversion if necessary, and insulates
the drivers from the difference.

Most drivers can use the simple helpers virtio_cread() and virtio_cwrite().

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/block/virtio_blk.c
drivers/char/virtio_console.c
drivers/net/caif/caif_virtio.c
drivers/net/virtio_net.c
drivers/scsi/virtio_scsi.c
drivers/virtio/virtio_balloon.c
net/9p/trans_virtio.c