mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-01 10:42:11 +00: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> Signed-off-by: Peter Rosin <peda@axentia.se>
This commit is contained in:
parent
59b723cd2a
commit
49a9b01803
@ -42,7 +42,7 @@ struct mux_state {
|
||||
unsigned int state;
|
||||
};
|
||||
|
||||
static struct class mux_class = {
|
||||
static const struct class mux_class = {
|
||||
.name = "mux",
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user