USB: core: Constify static attribute_group structs
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Wed, 25 Nov 2020 16:24:58 +0000 (17:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Nov 2020 12:40:42 +0000 (13:40 +0100)
commit4154a4f70a9488212f8731770e10eae957d33da9
tree4cd6f87dead07b766b15f5e61705a90860e9a625
parent11e5e568ceed7c8c570313a14fa96c72f21dad31
USB: core: Constify static attribute_group structs

These are never modified, so make them const to allow the compiler to
put them in read-only memory. Done with the help of coccinelle.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20201125162500.37228-2-rikard.falkeborn@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/endpoint.c
drivers/usb/core/port.c
drivers/usb/core/sysfs.c