projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d746cf8
)
media: i2c: make device_type const
author
Bhumika Goyal
<
[email protected]
>
Sat, 19 Aug 2017 08:22:14 +0000
(
04:22
-0400)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Sat, 26 Aug 2017 12:40:42 +0000
(08:40 -0400)
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 <
[email protected]
>
Signed-off-by: Hans Verkuil <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/i2c/soc_camera/mt9t031.c
patch
|
blob
|
history
diff --git
a/drivers/media/i2c/soc_camera/mt9t031.c
b/drivers/media/i2c/soc_camera/mt9t031.c
index 714fb3555b3413cd7d59375bf634494f05c2dcae..4802d30e47dea151682cf9443bfb584e682ccc32 100644
(file)
--- 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,
};