Searched hist:a70df964 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/usb/class/ |
H A D | usbtmc.c | a70df964 Fri Aug 04 07:06:40 CDT 2017 Arvind Yadav <arvind.yadav.cs@gmail.com> usb: usbtmc: 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> a70df964 Fri Aug 04 07:06:40 CDT 2017 Arvind Yadav <arvind.yadav.cs@gmail.com> usb: usbtmc: 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>
|