From: Bhumika Goyal Date: Tue, 29 Aug 2017 08:49:52 +0000 (+0200) Subject: mux: make device_type const X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a49c3feeb84e4b44d3022b8b1a303ea2e4eeeab9;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Peter Rosin Signed-off-by: Greg Kroah-Hartman --- 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, };