diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-19 11:22:25 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-20 21:08:41 +0300 |
commit | afd37dfa43caca1db72abe13d334d59c5967b4c1 (patch) | |
tree | cb5777f54d34754d07db4dc5e7a4202b8a114be3 /drivers/staging/greybus | |
parent | 34ff1bf4920471cff66775dc39537b15c5f0feff (diff) | |
download | linux-afd37dfa43caca1db72abe13d334d59c5967b4c1.tar.xz |
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>
Diffstat (limited to 'drivers/staging/greybus')
-rw-r--r-- | drivers/staging/greybus/gbphy.c | 2 |
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 = { 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, |