FROMGIT: 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. Bug: 174347172 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> (cherry picked from commit 690756a3 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-next) Cc: Badhri Jagan Sridharan <badhri@google.com> Cc: Will McVicker <willmcvicker@google.com> Signed-off-by:
Greg Kroah-Hartman <gregkh@google.com> Change-Id: I16847ce4feeda7009c244ee8face05e8396d8254
Loading
Please sign in to comment