driver core: make struct class groups members constant arrays

Constify the groups arrays, allowing to assign constant arrays.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://patch.msgid.link/7ff56b07-09ca-4948-b98f-5bd37ceef21e@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Heiner Kallweit 2026-03-01 13:31:56 +01:00 committed by Greg Kroah-Hartman
parent ece5283706
commit 10f874dc92

View File

@ -50,8 +50,8 @@ struct fwnode_handle;
struct class {
const char *name;
const struct attribute_group **class_groups;
const struct attribute_group **dev_groups;
const struct attribute_group *const *class_groups;
const struct attribute_group *const *dev_groups;
int (*dev_uevent)(const struct device *dev, struct kobj_uevent_env *env);
char *(*devnode)(const struct device *dev, umode_t *mode);