Displaying 2 results from an estimated 2 matches for "_vdev".
Did you mean:
mvdev
2012 Dec 05
12
[PATCH 1/3] virtio: change to_vp_device to an inlined definition
...d virtio_pci_id_table[] = {
MODULE_DEVICE_TABLE(pci, virtio_pci_id_table);
-/* Convert a generic virtio device to our structure */
-static struct virtio_pci_device *to_vp_device(struct virtio_device *vdev)
-{
- return container_of(vdev, struct virtio_pci_device, vdev);
-}
+#define to_vp_device(_vdev) container_of(_vdev, struct virtio_pci_device, vdev)
/* virtio config->get_features() implementation */
static u32 vp_get_features(struct virtio_device *vdev)
--
1.8.0
2012 Dec 05
12
[PATCH 1/3] virtio: change to_vp_device to an inlined definition
...d virtio_pci_id_table[] = {
MODULE_DEVICE_TABLE(pci, virtio_pci_id_table);
-/* Convert a generic virtio device to our structure */
-static struct virtio_pci_device *to_vp_device(struct virtio_device *vdev)
-{
- return container_of(vdev, struct virtio_pci_device, vdev);
-}
+#define to_vp_device(_vdev) container_of(_vdev, struct virtio_pci_device, vdev)
/* virtio config->get_features() implementation */
static u32 vp_get_features(struct virtio_device *vdev)
--
1.8.0