]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
staging: greybus: make device_type const
authorBhumika Goyal <bhumirks@gmail.com>
Sat, 19 Aug 2017 08:22:25 +0000 (13:52 +0530)
committerGreg 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

index 603de6f21fd119b16f84d82257f6216ec29c58bc..80c1da8224e6de7ae8681a86e05de7bdc7b11011 100644 (file)
@@ -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,