virtio: add drv_to_virtio to make code clearly
authorWanlong Gao <gaowanlong@cn.fujitsu.com>
Mon, 10 Dec 2012 08:38:33 +0000 (16:38 +0800)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 18 Dec 2012 04:50:43 +0000 (15:20 +1030)
commit9a2bdcc85d28506d4e5d4a9618fb133a3f40945d
treeac571e092d7542a5c5121d25b5f8f02cdfbb7a41
parent9bffdca8c64a72ac54c47a552734ab457bc720d4
virtio: add drv_to_virtio to make code clearly

Add drv_to_virtio wrapper to get virtio_driver from device_driver.

Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/virtio/virtio.c
include/linux/virtio.h