Skip to content

Commit

Permalink
mux: make device_type const
Browse files Browse the repository at this point in the history
Make this const as it is only stored in the type field of a device
structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <[email protected]>
Signed-off-by: Peter Rosin <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
goyalbhumika authored and gregkh committed Aug 29, 2017
1 parent ac317e2 commit a49c3fe
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 @@ -58,7 +58,7 @@ static void mux_chip_release(struct device *dev)
kfree(mux_chip);
}

static struct device_type mux_type = {
static const struct device_type mux_type = {
.name = "mux-chip",
.release = mux_chip_release,
};
Expand Down

0 comments on commit a49c3fe

Please sign in to comment.