mux: make device_type const
authorBhumika Goyal <bhumirks@gmail.com>
Tue, 29 Aug 2017 08:49:52 +0000 (10:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Aug 2017 11:46:35 +0000 (13:46 +0200)
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>
drivers/mux/core.c

index aabfb1549d4e47c2a094cb6e212442f51338c3ea..2260063b0ea83be7f24e5d780af8bd808c23b427 100644 (file)
@@ -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,
 };