diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-09 00:22:56 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-13 00:33:31 +0200 |
commit | ed0617b5c0bcd7fd04053568aa0cc19a977a1f26 (patch) | |
tree | 8b5a0a83d4374fc9d6361cbb9f820300c446d7ca /drivers/base/driver.c | |
parent | driver core: bus_type: add dev_groups (diff) | |
download | linux-ed0617b5c0bcd7fd04053568aa0cc19a977a1f26.tar.xz linux-ed0617b5c0bcd7fd04053568aa0cc19a977a1f26.zip |
driver core: bus_type: add drv_groups
attribute groups are much more flexible than just a list of attributes,
due to their support for visibility of the attributes, and binary
attributes. Add drv_groups to struct bus_type which should be used
instead of drv_attrs.
drv_attrs will be removed from the structure soon.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/driver.c')
-rw-r--r-- | drivers/base/driver.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/base/driver.c b/drivers/base/driver.c index 974e301a1ef0..89db726ebb98 100644 --- a/drivers/base/driver.c +++ b/drivers/base/driver.c @@ -123,8 +123,8 @@ void driver_remove_file(struct device_driver *drv, } EXPORT_SYMBOL_GPL(driver_remove_file); -static int driver_add_groups(struct device_driver *drv, - const struct attribute_group **groups) +int driver_add_groups(struct device_driver *drv, + const struct attribute_group **groups) { int error = 0; int i; @@ -143,8 +143,8 @@ static int driver_add_groups(struct device_driver *drv, return error; } -static void driver_remove_groups(struct device_driver *drv, - const struct attribute_group **groups) +void driver_remove_groups(struct device_driver *drv, + const struct attribute_group **groups) { int i; |