Skip to content

Commit

Permalink
mux: constify mux class
Browse files Browse the repository at this point in the history
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
Bartosz Golaszewski authored and gregkh committed Jan 10, 2025
1 parent 18032c6 commit 7685ad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mux/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ struct mux_state {
unsigned int state;
};

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

Expand Down

0 comments on commit 7685ad5

Please sign in to comment.