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)
commitced6473e7486702f530a49f886b73195e4977734
treef4622f9caeccd1c86f340a86508287ff68670a1d
parentb5a062344419baeeea0cc034fe5eef88a877190e
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