public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RESEND PATCH] mux: constify mux class
@ 2024-12-05  8:56 Bartosz Golaszewski
  2024-12-05  9:12 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 4+ messages in thread
From: Bartosz Golaszewski @ 2024-12-05  8:56 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: Peter Rosin, linux-kernel, Bartosz Golaszewski

From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

All class functions used here take a const pointer to the class
structure so we can make the struct itself constant.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
Greg: Peter picked this up into his branch long before the v6.13 merge
window, then never sent it upstream. Could you pick this up this time
into your tree?

 drivers/mux/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mux/core.c b/drivers/mux/core.c
index 78c0022697ec7..02be4ba372571 100644
--- a/drivers/mux/core.c
+++ b/drivers/mux/core.c
@@ -42,7 +42,7 @@ struct mux_state {
 	unsigned int state;
 };
 
-static struct class mux_class = {
+static const struct class mux_class = {
 	.name = "mux",
 };
 
-- 
2.45.2


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

end of thread, other threads:[~2025-01-10  9:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-05  8:56 [RESEND PATCH] mux: constify mux class Bartosz Golaszewski
2024-12-05  9:12 ` Greg Kroah-Hartman
2025-01-02  9:21   ` Bartosz Golaszewski
2025-01-10  9:08     ` Greg Kroah-Hartman

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