Skip to content

Commit a49c3fe

Browse files
goyalbhumikagregkh
authored andcommitted
mux: make device_type const
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 <bhumirks@gmail.com> Signed-off-by: Peter Rosin <peda@axentia.se> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent ac317e2 commit a49c3fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/mux/core.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ static void mux_chip_release(struct device *dev)
5858
kfree(mux_chip);
5959
}
6060

61-
static struct device_type mux_type = {
61+
static const struct device_type mux_type = {
6262
.name = "mux-chip",
6363
.release = mux_chip_release,
6464
};

0 commit comments

Comments
 (0)