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

2012-12-05 Thread Michael S. Tsirkin
On Wed, Dec 05, 2012 at 03:03:29PM +0800, Wanlong Gao wrote: Add drv_to_virtio wrapper to get virtio_driver from device_driver. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com IMHO a function would be slightly better. --- drivers/virtio/virtio.c | 11 ---

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

2012-12-04 Thread Wanlong Gao
Add drv_to_virtio wrapper to get virtio_driver from device_driver. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- drivers/virtio/virtio.c | 11 --- include/linux/virtio.h | 1 + 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/virtio/virtio.c