mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
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>
This commit is contained in:
parent
9ecab063e9
commit
f1462b9768
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user