summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-29 10:49:52 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-29 13:46:35 +0200
commita49c3feeb84e4b44d3022b8b1a303ea2e4eeeab9 (patch)
tree4baee93a2ce992e069675922b94ec4e815347444 /drivers
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>
Diffstat (limited to 'drivers')
-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)
kfree(mux_chip);
}
-static struct device_type mux_type = {
+static const struct device_type mux_type = {
.name = "mux-chip",
.release = mux_chip_release,
};