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