diff options
author | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2024-12-05 09:56:05 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-01-10 10:15:04 +0100 |
commit | 7685ad5f08d9297f5a3d30b1818391ac94813171 (patch) | |
tree | b476c1b1873c86fda92b311806b4fcbdbc0d332a /drivers/mux | |
parent | 18032c6bc0e204c8f836b09707ef671991e4fe87 (diff) |
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>
Diffstat (limited to 'drivers/mux')
-rw-r--r-- | drivers/mux/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mux/core.c b/drivers/mux/core.c index 78c0022697ec..02be4ba37257 100644 --- a/drivers/mux/core.c +++ b/drivers/mux/core.c @@ -42,7 +42,7 @@ struct mux_state { unsigned int state; }; -static struct class mux_class = { +static const struct class mux_class = { .name = "mux", }; |