Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Heiner Kallweit and committed by
Greg Kroah-Hartman
10f874dc ece52837

+2 -2
+2 -2
include/linux/device/class.h
··· 50 50 struct class { 51 51 const char *name; 52 52 53 - const struct attribute_group **class_groups; 54 - const struct attribute_group **dev_groups; 53 + const struct attribute_group *const *class_groups; 54 + const struct attribute_group *const *dev_groups; 55 55 56 56 int (*dev_uevent)(const struct device *dev, struct kobj_uevent_env *env); 57 57 char *(*devnode)(const struct device *dev, umode_t *mode);