mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2025-04-19 20:58:31 +09:00
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: 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>
This commit is contained in:
parent
18032c6bc0
commit
7685ad5f08
@ -42,7 +42,7 @@ struct mux_state {
|
||||
unsigned int state;
|
||||
};
|
||||
|
||||
static struct class mux_class = {
|
||||
static const struct class mux_class = {
|
||||
.name = "mux",
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user