diff options
| author | Heiner Kallweit <hkallweit1@gmail.com> | 2026-03-16 23:10:31 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-05-22 13:32:05 +0200 |
| commit | f1462b97684b5d0cef0a4d026c7c9c9c42cd192c (patch) | |
| tree | a15ba5f742e8b9847a0ac487a9a55ff556b9c8ce /include/linux | |
| parent | 9ecab063e9821b23c82907d7889302c22f197e1e (diff) | |
| download | linux-next-f1462b97684b5d0cef0a4d026c7c9c9c42cd192c.tar.gz linux-next-f1462b97684b5d0cef0a4d026c7c9c9c42cd192c.zip | |
driver core: make struct bus_type 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/265f6584-8edd-48a0-9568-a9d584b9ec3a@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/device/bus.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/device/bus.h b/include/linux/device/bus.h index c1b463cd6464..a38f7229b8f4 100644 --- a/include/linux/device/bus.h +++ b/include/linux/device/bus.h @@ -83,9 +83,9 @@ struct fwnode_handle; struct bus_type { const char *name; const char *dev_name; - const struct attribute_group **bus_groups; - const struct attribute_group **dev_groups; - const struct attribute_group **drv_groups; + const struct attribute_group *const *bus_groups; + const struct attribute_group *const *dev_groups; + const struct attribute_group *const *drv_groups; int (*match)(struct device *dev, const struct device_driver *drv); int (*uevent)(const struct device *dev, struct kobj_uevent_env *env); |
