driver core: add dev_groups to all drivers
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 31 Jul 2019 12:43:40 +0000 (14:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Aug 2019 10:37:53 +0000 (12:37 +0200)
commit23b6904442d08b7dbed7622ed33b236d41a3aa8b
treef3c71b34f37aed14893b32fe783d098255f20b03
parent5f9e832c137075045d15cd6899ab0505cfb2ca4b
driver core: add dev_groups to all drivers

Add the ability for the driver core to create and remove a list of
attribute groups automatically when the device is bound/unbound from a
specific driver.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Tested-by: Richard Gong <richard.gong@linux.intel.com>
Link: https://lore.kernel.org/r/20190731124349.4474-2-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/dd.c
include/linux/device.h