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>
This commit is contained in:
Bhumika Goyal 2017-08-29 10:49:52 +02:00 коммит произвёл Greg Kroah-Hartman
Родитель ac317e2767
Коммит a49c3feeb8
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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,
};