From: Bhumika Goyal Date: Sat, 19 Aug 2017 08:22:14 +0000 (-0400) Subject: media: i2c: make device_type const X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ea9b0f31c1acd35b6905dbfa7dd19c01592470f6;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git media: i2c: 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: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/i2c/soc_camera/mt9t031.c b/drivers/media/i2c/soc_camera/mt9t031.c index 714fb3555b34..4802d30e47de 100644 --- a/drivers/media/i2c/soc_camera/mt9t031.c +++ b/drivers/media/i2c/soc_camera/mt9t031.c @@ -592,7 +592,7 @@ static const struct dev_pm_ops mt9t031_dev_pm_ops = { .runtime_resume = mt9t031_runtime_resume, }; -static struct device_type mt9t031_dev_type = { +static const struct device_type mt9t031_dev_type = { .name = "MT9T031", .pm = &mt9t031_dev_pm_ops, };