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)
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>

No differences found