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

usb: common: ulpi: Constify static attribute_group struct

It is never modified, so make them const to allow the compiler to
put it 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-4-rikard.falkeborn@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Rikard Falkeborn and committed by
Greg Kroah-Hartman
52170e93 690756a3

+1 -1
+1 -1
drivers/usb/common/ulpi.c
··· 118 118 NULL 119 119 }; 120 120 121 - static struct attribute_group ulpi_dev_attr_group = { 121 + static const struct attribute_group ulpi_dev_attr_group = { 122 122 .attrs = ulpi_dev_attrs, 123 123 }; 124 124