[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241205085605.9501-1-brgl@bgdev.pl>
Date: Thu, 5 Dec 2024 09:56:05 +0100
From: Bartosz Golaszewski <brgl@...ev.pl>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: Peter Rosin <peda@...ntia.se>,
linux-kernel@...r.kernel.org,
Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
Subject: [RESEND PATCH] mux: constify mux class
From: Bartosz Golaszewski <bartosz.golaszewski@...aro.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@...aro.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
Powered by blists - more mailing lists