diff options
| author | Heiner Kallweit <hkallweit1@gmail.com> | 2026-03-01 13:31:56 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-03-13 10:21:31 +0100 |
| commit | 10f874dc92b3f3bf96470d997bdf157b289c9d4c (patch) | |
| tree | 298d84c2534c9e5f4efb226e24054ec556458fb3 /include/linux/device/class.h | |
| parent | ece5283706aff6791a37894bafbb0c134a94c0f3 (diff) | |
| download | lwn-10f874dc92b3f3bf96470d997bdf157b289c9d4c.tar.gz lwn-10f874dc92b3f3bf96470d997bdf157b289c9d4c.zip | |
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>
Diffstat (limited to 'include/linux/device/class.h')
| -rw-r--r-- | include/linux/device/class.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/device/class.h b/include/linux/device/class.h index 65880e60c720..2079239a5aa5 100644 --- a/include/linux/device/class.h +++ b/include/linux/device/class.h @@ -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); |
