aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-19 04:22:25 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-20 14:08:41 -0400
commitafd37dfa43caca1db72abe13d334d59c5967b4c1 (patch)
treecb5777f54d34754d07db4dc5e7a4202b8a114be3
parent34ff1bf4920471cff66775dc39537b15c5f0feff (diff)
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 <bhumirks@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/greybus/gbphy.c2
1 files changed, 1 insertions, 1 deletions
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 = {
66 gb_gbphy_idle) 66 gb_gbphy_idle)
67}; 67};
68 68
69static struct device_type greybus_gbphy_dev_type = { 69static const struct device_type greybus_gbphy_dev_type = {
70 .name = "gbphy_device", 70 .name = "gbphy_device",
71 .release = gbphy_dev_release, 71 .release = gbphy_dev_release,
72 .pm = &gb_gbphy_pm_ops, 72 .pm = &gb_gbphy_pm_ops,