]> git.baikalelectronics.ru Git - kernel.git/commit
virtio-mmio: Use to_virtio_mmio_device() to simply code
authorTang Bin <tangbin@cmss.chinamobile.com>
Mon, 22 Feb 2021 05:57:24 +0000 (13:57 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 14 Mar 2021 08:37:35 +0000 (04:37 -0400)
commit4b4f9f70a670660efa15c0fa4edf301409d353e2
tree087a941704743b01582d9e5f00590c576d55f766
parent578ce3b07ea6b1f7903f92ab330aa95cfbefab9f
virtio-mmio: Use to_virtio_mmio_device() to simply code

The file virtio_mmio.c has defined the function to_virtio_mmio_device,
so use it instead of container_of() to simply code.

Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Link: https://lore.kernel.org/r/20210222055724.220-1-tangbin@cmss.chinamobile.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/virtio/virtio_mmio.c