]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
driver: core: constify groups array argument in device_add_groups and device_remove_g...
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 1 Mar 2026 12:31:02 +0000 (13:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Mar 2026 09:21:31 +0000 (10:21 +0100)
commitece5283706aff6791a37894bafbb0c134a94c0f3
treeeec2d5626c3569dc20ac3467799530a134b3def7
parentfe2511adb1fc1814df06ca11e0d8a92f792e4029
driver: core: constify groups array argument in device_add_groups and device_remove_groups

Now that sysfs_create_groups() and sysfs_remove_groups() allow to
pass constant groups arrays, we can constify the groups array argument
also here.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://patch.msgid.link/8ea2d6d1-0adb-4d7f-92bc-751e93ce08d6@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/core.c
include/linux/device.h