mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 03:24:19 +02:00
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>
This commit is contained in:
parent
ece5283706
commit
10f874dc92
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user