VFIO: Wrapper for getting reference to vfio_device
authorVijay Mohan Pandarathil <vijaymohan.pandarathil@hp.com>
Mon, 11 Mar 2013 15:28:44 +0000 (09:28 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 11 Mar 2013 15:28:44 +0000 (09:28 -0600)
commit44f507163d9e51238458ee6904b4d71fb0723723
treeddd48ebd567813495ddeb718d7d54524f16f313f
parentf6161aa153581da4a3867a2d1a7caf4be19b6ec9
VFIO: Wrapper for getting reference to vfio_device

- Added vfio_device_get_from_dev() as wrapper to get
  reference to vfio_device from struct device.

- Added vfio_device_data() as a wrapper to get device_data from
  vfio_device.

Signed-off-by: Vijay Mohan Pandarathil <vijaymohan.pandarathil@hp.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio.c
include/linux/vfio.h