diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-07-20 02:24:31 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-07-22 11:59:23 +0200 |
commit | a7670d425b75f9e44b7d4d0aea04f4a6d5f34291 (patch) | |
tree | dc9ebc90e421d03e3d0ae03134f3aa9b1fc94442 /drivers/base/base.h | |
parent | driver core: emit uevents when device is bound to a driver (diff) | |
download | linux-a7670d425b75f9e44b7d4d0aea04f4a6d5f34291.tar.xz linux-a7670d425b75f9e44b7d4d0aea04f4a6d5f34291.zip |
driver core: make device_{add|remove}_groups() public
Many drivers create additional driver-specific device attributes when
binding to the device. To avoid them calling SYSFS API directly, let's
export these helpers.
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/base.h')
-rw-r--r-- | drivers/base/base.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/base/base.h b/drivers/base/base.h index e19b1008e5fb..539432a14b5c 100644 --- a/drivers/base/base.h +++ b/drivers/base/base.h @@ -126,11 +126,6 @@ extern int driver_add_groups(struct device_driver *drv, extern void driver_remove_groups(struct device_driver *drv, const struct attribute_group **groups); -extern int device_add_groups(struct device *dev, - const struct attribute_group **groups); -extern void device_remove_groups(struct device *dev, - const struct attribute_group **groups); - extern char *make_class_name(const char *name, struct kobject *kobj); extern int devres_release_all(struct device *dev); |