[PATCH V3 2/2] virtio: add drv_to_virtio to make code clearly

2012-12-10 Thread Wanlong Gao
Add drv_to_virtio wrapper to get virtio_driver from device_driver. Cc: Rusty Russell ru...@rustcorp.com.au Cc: Michael S. Tsirkin m...@redhat.com Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- drivers/virtio/virtio.c | 11 --- include/linux/virtio.h | 5 + 2 files

Re: [PATCH V3 2/2] virtio: add drv_to_virtio to make code clearly

2012-12-10 Thread Rusty Russell
Wanlong Gao gaowanl...@cn.fujitsu.com writes: Add drv_to_virtio wrapper to get virtio_driver from device_driver. Cc: Rusty Russell ru...@rustcorp.com.au Cc: Michael S. Tsirkin m...@redhat.com Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com Thanks, both applied. Cheers, Rusty.