Commit 7685ad5f authored by Bartosz Golaszewski's avatar Bartosz Golaszewski Committed by Greg Kroah-Hartman
Browse files

mux: constify mux class



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

Signed-off-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Link: https://lore.kernel.org/r/20241205085605.9501-1-brgl@bgdev.pl


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 18032c6b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@ struct mux_state {
	unsigned int state;
};

static struct class mux_class = {
static const struct class mux_class = {
	.name = "mux",
};