[PATCH v2 3/7] driver core: add device_{add|remove}_group() helpers

2017-07-19 Thread Dmitry Torokhov
We have helpers that work with NULL terminated array of groups, but many drivers only create a single supplemental group, and do not want to declare a group array. Let's provide them with helpers working with a single group. Signed-off-by: Dmitry Torokhov ---

[PATCH v2 3/7] driver core: add device_{add|remove}_group() helpers

2017-07-19 Thread Dmitry Torokhov
We have helpers that work with NULL terminated array of groups, but many drivers only create a single supplemental group, and do not want to declare a group array. Let's provide them with helpers working with a single group. Signed-off-by: Dmitry Torokhov --- include/linux/device.h | 16