aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-29 04:49:52 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-29 07:46:35 -0400
commita49c3feeb84e4b44d3022b8b1a303ea2e4eeeab9 (patch)
tree4baee93a2ce992e069675922b94ec4e815347444
parentac317e276700a613057c34f10b2dc714c17d1b15 (diff)
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>
-rw-r--r--drivers/mux/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mux/core.c b/drivers/mux/core.c
index aabfb1549d4e..2260063b0ea8 100644
--- a/drivers/mux/core.c
+++ b/drivers/mux/core.c
@@ -58,7 +58,7 @@ static void mux_chip_release(struct device *dev)
58 kfree(mux_chip); 58 kfree(mux_chip);
59} 59}
60 60
61static struct device_type mux_type = { 61static const struct device_type mux_type = {
62 .name = "mux-chip", 62 .name = "mux-chip",
63 .release = mux_chip_release, 63 .release = mux_chip_release,
64}; 64};