[PATCH 0/3] drivers/usb: Constify static attribute_group structs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux