usb: typec: Constify static attribute_group structs
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Wed, 25 Nov 2020 16:24:59 +0000 (17:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Nov 2020 12:40:42 +0000 (13:40 +0100)
commit690756a367649a19c5622d135e00799930e7996c
treef48d48397006f4fe99d5f9b1f8d63b208da56394
parent4154a4f70a9488212f8731770e10eae957d33da9
usb: typec: 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-3-rikard.falkeborn@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/class.c