diff options
| author | Heiner Kallweit <hkallweit1@gmail.com> | 2026-03-17 01:11:12 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-05-22 14:32:05 +0300 |
| commit | a9c12b783cc711de3ac7f188bed07d529bb818af (patch) | |
| tree | 36debe98cb5131b28df8870fa1a0099f7168d487 /include/linux | |
| parent | f1462b97684b5d0cef0a4d026c7c9c9c42cd192c (diff) | |
| download | linux-a9c12b783cc711de3ac7f188bed07d529bb818af.tar.xz | |
device core: make struct device_driver 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/42624513-923c-4970-834d-036282e24e24@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/device/driver.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/device/driver.h b/include/linux/device/driver.h index bbc67ec513ed..c882daaef012 100644 --- a/include/linux/device/driver.h +++ b/include/linux/device/driver.h @@ -114,8 +114,8 @@ struct device_driver { void (*shutdown) (struct device *dev); int (*suspend) (struct device *dev, pm_message_t state); int (*resume) (struct device *dev); - const struct attribute_group **groups; - const struct attribute_group **dev_groups; + const struct attribute_group *const *groups; + const struct attribute_group *const *dev_groups; const struct dev_pm_ops *pm; void (*coredump) (struct device *dev); |
