Merge remote-tracking branch 'char-misc/char-misc-next'
[deliverable/linux.git] / include / linux / hyperv.h
index 7d7cbff33bda07046712e910ae64c356adc6caf0..4068d0bae8e5118590bde16fa91a0f658d99f87b 100644 (file)
@@ -1172,6 +1172,13 @@ int __must_check __vmbus_driver_register(struct hv_driver *hv_driver,
                                         const char *mod_name);
 void vmbus_driver_unregister(struct hv_driver *hv_driver);
 
+static inline const char *vmbus_dev_name(const struct hv_device *device_obj)
+{
+       const struct kobject *kobj = &device_obj->device.kobj;
+
+       return kobj->name;
+}
+
 void vmbus_hvsock_device_unregister(struct vmbus_channel *channel);
 
 int vmbus_allocate_mmio(struct resource **new, struct hv_device *device_obj,
This page took 0.037108 seconds and 5 git commands to generate.