Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Bhumika Goyal and committed by
Greg Kroah-Hartman
a49c3fee ac317e27

+1 -1
+1 -1
drivers/mux/core.c
··· 58 58 kfree(mux_chip); 59 59 } 60 60 61 - static struct device_type mux_type = { 61 + static const struct device_type mux_type = { 62 62 .name = "mux-chip", 63 63 .release = mux_chip_release, 64 64 };