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:
34ff1bf
)
staging: greybus: make device_type const
author
Bhumika Goyal
<bhumirks@gmail.com>
Sat, 19 Aug 2017 08:22:25 +0000
(13:52 +0530)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sun, 20 Aug 2017 18:08:41 +0000
(11:08 -0700)
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/gbphy.c
patch
|
blob
|
history
diff --git
a/drivers/staging/greybus/gbphy.c
b/drivers/staging/greybus/gbphy.c
index 603de6f21fd119b16f84d82257f6216ec29c58bc..80c1da8224e6de7ae8681a86e05de7bdc7b11011 100644
(file)
--- 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,