mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v4 0/2] wireless: ray_cs: Improve card_status[]
@ 2022-04-06 15:22 Benjamin Stürz
  2022-04-06 15:22 ` [PATCH v4 1/2] " Benjamin Stürz
  2022-04-06 15:22 ` [PATCH v4 2/2] ray_cs: Make card_status[] const Benjamin Stürz
  0 siblings, 2 replies; 4+ messages in thread
From: Benjamin Stürz @ 2022-04-06 15:22 UTC (permalink / raw)
  To: kvalo
  Cc: davem, kuba, pabeni, linux-wireless, netdev, linux-kernel,
	Benjamin Stürz

This small patch series improves the card_status[] array in ray_cs.c.
It essentially replaces comments describing the index with designated
initializers using enum constants as indexes.
It also makes the array const because it shouldn't be modified at
runtime.

Benjamin Stürz (2):
  ray_cs: Improve card_status[]
  ray_cs: Make card_status[] const

 drivers/net/wireless/ray_cs.c | 33 ++++++++++++++++++---------------
 1 file changed, 18 insertions(+), 15 deletions(-)

-- 
2.35.1


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

end of thread, other threads:[~2022-04-06 19:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-06 15:22 [PATCH v4 0/2] wireless: ray_cs: Improve card_status[] Benjamin Stürz
2022-04-06 15:22 ` [PATCH v4 1/2] " Benjamin Stürz
2022-04-06 17:58   ` Joe Perches
2022-04-06 15:22 ` [PATCH v4 2/2] ray_cs: Make card_status[] const Benjamin Stürz

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®