[PATCH 0/3] driver core: constify groups arrays in few functions and struct class
From: Heiner Kallweit
Date: Sun Mar 01 2026 - 07:29:28 EST
This series constifies the attribute group groups arrays in a number
of functions, and in struct class. This allows to assign constant
arrays, w/o "discards const qualifier" compiler warning.
Heiner Kallweit (3):
sysfs: constify group arrays in function arguments
driver: core: constify groups array argument in device_add_groups and
device_remove_groups
driver core: make struct class groups members constant arrays
drivers/base/core.c | 5 +++--
fs/sysfs/group.c | 10 +++++-----
include/linux/device.h | 4 ++--
include/linux/device/class.h | 4 ++--
include/linux/sysfs.h | 16 ++++++++--------
5 files changed, 20 insertions(+), 19 deletions(-)
--
2.53.0