Searched hist:a351a2bf (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/usb/chipidea/ |
H A D | core.c | a351a2bf Fri Aug 04 07:06:38 CDT 2017 Arvind Yadav <arvind.yadav.cs@gmail.com> usb: chipidea: constify attribute_group structures.
attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by <linux/sysfs.h> work with const attribute_group. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> a351a2bf Fri Aug 04 07:06:38 CDT 2017 Arvind Yadav <arvind.yadav.cs@gmail.com> usb: chipidea: constify attribute_group structures. attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by <linux/sysfs.h> work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|