lkml.org 
[lkml]   [2020]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/3] drivers/usb: Constify static attribute_group structs
Date
Constify a number of static attribute_group structs. Typically, the
structs either have their address stored in an array of pointers to
const attribute_group or have their address passed to functions that
have pointers to const attribute_group structs as input arguments.

With these patches applied, all static struct attribute_group in
drivers/usb are const.

Done with the help of coccinelle.

Rikard Falkeborn (3):
USB: core: Constify static attribute_group structs
usb: typec: Constify static attribute_group structs
usb: common: ulpi: Constify static attribute_group struct

drivers/usb/common/ulpi.c | 2 +-
drivers/usb/core/endpoint.c | 2 +-
drivers/usb/core/port.c | 4 ++--
drivers/usb/core/sysfs.c | 14 +++++++-------
drivers/usb/typec/class.c | 8 ++++----
5 files changed, 15 insertions(+), 15 deletions(-)

--
2.29.2

\
 
 \ /
  Last update: 2020-11-25 17:26    [W:0.392 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site