diff options
-rw-r--r-- | include/linux/virtio.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/virtio.h b/include/linux/virtio.h index 951d81747b42..78408d5237c1 100644 --- a/include/linux/virtio.h +++ b/include/linux/virtio.h | |||
@@ -98,12 +98,15 @@ void unregister_virtio_device(struct virtio_device *dev); | |||
98 | * @probe: the function to call when a device is found. Returns a token for | 98 | * @probe: the function to call when a device is found. Returns a token for |
99 | * remove, or PTR_ERR(). | 99 | * remove, or PTR_ERR(). |
100 | * @remove: the function when a device is removed. | 100 | * @remove: the function when a device is removed. |
101 | * @config_changed: optional function to call when the device configuration | ||
102 | * changes; may be called in interrupt context. | ||
101 | */ | 103 | */ |
102 | struct virtio_driver { | 104 | struct virtio_driver { |
103 | struct device_driver driver; | 105 | struct device_driver driver; |
104 | const struct virtio_device_id *id_table; | 106 | const struct virtio_device_id *id_table; |
105 | int (*probe)(struct virtio_device *dev); | 107 | int (*probe)(struct virtio_device *dev); |
106 | void (*remove)(struct virtio_device *dev); | 108 | void (*remove)(struct virtio_device *dev); |
109 | void (*config_changed)(struct virtio_device *dev); | ||
107 | }; | 110 | }; |
108 | 111 | ||
109 | int register_virtio_driver(struct virtio_driver *drv); | 112 | int register_virtio_driver(struct virtio_driver *drv); |