Commit afd37dfa authored by Bhumika Goyal's avatar Bhumika Goyal Committed by Greg Kroah-Hartman

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: default avatarBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 34ff1bf4
...@@ -66,7 +66,7 @@ static const struct dev_pm_ops gb_gbphy_pm_ops = { ...@@ -66,7 +66,7 @@ static const struct dev_pm_ops gb_gbphy_pm_ops = {
gb_gbphy_idle) gb_gbphy_idle)
}; };
static struct device_type greybus_gbphy_dev_type = { static const struct device_type greybus_gbphy_dev_type = {
.name = "gbphy_device", .name = "gbphy_device",
.release = gbphy_dev_release, .release = gbphy_dev_release,
.pm = &gb_gbphy_pm_ops, .pm = &gb_gbphy_pm_ops,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment