From: Bhumika Goyal Date: Sat, 19 Aug 2017 08:22:25 +0000 (+0530) Subject: staging: greybus: make device_type const X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=afd37dfa43caca1db72abe13d334d59c5967b4c1;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git staging: greybus: 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: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/gbphy.c b/drivers/staging/greybus/gbphy.c index 603de6f21fd1..80c1da8224e6 100644 --- a/drivers/staging/greybus/gbphy.c +++ b/drivers/staging/greybus/gbphy.c @@ -66,7 +66,7 @@ static const struct dev_pm_ops gb_gbphy_pm_ops = { gb_gbphy_idle) }; -static struct device_type greybus_gbphy_dev_type = { +static const struct device_type greybus_gbphy_dev_type = { .name = "gbphy_device", .release = gbphy_dev_release, .pm = &gb_gbphy_pm_ops,