]> git.baikalelectronics.ru Git - kernel.git/commit
driver core: class: add class_groups support
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Nov 2016 15:41:41 +0000 (16:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Nov 2016 20:12:12 +0000 (21:12 +0100)
commitea63d18420105884a000ab774100895a6624c587
treef4622f9caeccd1c86f340a86508287ff68670a1d
parent9d1029e2697ae0bca80bfacde64b22cd9483a0c4
driver core: class: add class_groups support

struct class needs to have a set of default groups that are added, as
adding individual attributes does not work well in the long run.  So add
support for that.

Future patches will convert the existing usages of class_attrs to use
class_groups and then class_attrs will go away.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/class.c
include/linux/device.h