mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] drivers/usb: Constify static attribute_group structs
@ 2020-11-25 16:24 Rikard Falkeborn
  2020-11-25 16:24 ` [PATCH 1/3] USB: core: " Rikard Falkeborn
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Rikard Falkeborn @ 2020-11-25 16:24 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: linux-usb, linux-kernel, Rikard Falkeborn, Heikki Krogerus,
	Alan Stern, Eugeniu Rosca, chenqiwu, Zeng Tao

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-11-25 16:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-25 16:24 [PATCH 0/3] drivers/usb: Constify static attribute_group structs Rikard Falkeborn
2020-11-25 16:24 ` [PATCH 1/3] USB: core: " Rikard Falkeborn
2020-11-25 16:24 ` [PATCH 2/3] usb: typec: " Rikard Falkeborn
2020-11-25 16:25 ` [PATCH 3/3] usb: common: ulpi: Constify static attribute_group struct Rikard Falkeborn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®