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
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ struct mux_state {
|
|||
unsigned int state;
|
||||
};
|
||||
|
||||
static struct class mux_class = {
|
||||
static const struct class mux_class = {
|
||||
.name = "mux",
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue