[PATCH v2 2/7] driver core: make device_{add|remove}_groups() public

2017-07-19 Thread Dmitry Torokhov
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 --- drivers/base/base.h| 5 - drivers/base/core.c| 2 ++

[PATCH v2 2/7] driver core: make device_{add|remove}_groups() public

2017-07-19 Thread Dmitry Torokhov
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 --- drivers/base/base.h| 5 - drivers/base/core.c| 2 ++ include/linux/device.h | 5 +