]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - include/linux/device.h
driver core: make device_{add|remove}_groups() public
[mirror_ubuntu-bionic-kernel.git] / include / linux / device.h
index 9ef518af5515a01e202dee3cf4c27ffcd8c56441..10cf209a4e8219936e5ca93cdd1b099b332ef1b5 100644 (file)
@@ -1200,6 +1200,11 @@ struct device *device_create_with_groups(struct class *cls,
                             const char *fmt, ...);
 extern void device_destroy(struct class *cls, dev_t devt);
 
+extern int __must_check device_add_groups(struct device *dev,
+                                       const struct attribute_group **groups);
+extern void device_remove_groups(struct device *dev,
+                                const struct attribute_group **groups);
+
 /*
  * Platform "fixup" functions - allow the platform to have their say
  * about devices and actions that the general device layer doesn't