diff options
| author | Bhumika Goyal <[email protected]> | 2017-08-29 08:49:52 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2017-08-29 11:46:35 +0000 |
| commit | a49c3feeb84e4b44d3022b8b1a303ea2e4eeeab9 (patch) | |
| tree | 4baee93a2ce992e069675922b94ec4e815347444 /drivers/mux/core.c | |
| parent | char: virtio: constify attribute_group structures. (diff) | |
| download | kernel-a49c3feeb84e4b44d3022b8b1a303ea2e4eeeab9.tar.gz kernel-a49c3feeb84e4b44d3022b8b1a303ea2e4eeeab9.zip | |
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 <[email protected]>
Signed-off-by: Peter Rosin <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/mux/core.c')
| -rw-r--r-- | drivers/mux/core.c | 2 |
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, }; |
