]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mux: constify mux class
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 5 Dec 2024 08:56:05 +0000 (09:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jan 2025 09:15:04 +0000 (10:15 +0100)
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>
Link: https://lore.kernel.org/r/20241205085605.9501-1-brgl@bgdev.pl
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mux/core.c

index 78c0022697ec7c3428dcdf95a5cdd89bd6096ab8..02be4ba372571494459632bd912313f0a719999d 100644 (file)
@@ -42,7 +42,7 @@ struct mux_state {
        unsigned int state;
 };
 
-static struct class mux_class = {
+static const struct class mux_class = {
        .name = "mux",
 };