Commit a49c3fee authored by Bhumika Goyal's avatar Bhumika Goyal Committed by Greg Kroah-Hartman

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: default avatarBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: default avatarPeter Rosin <peda@axentia.se>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ac317e27
...@@ -58,7 +58,7 @@ static void mux_chip_release(struct device *dev) ...@@ -58,7 +58,7 @@ static void mux_chip_release(struct device *dev)
kfree(mux_chip); kfree(mux_chip);
} }
static struct device_type mux_type = { static const struct device_type mux_type = {
.name = "mux-chip", .name = "mux-chip",
.release = mux_chip_release, .release = mux_chip_release,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment