staging: hikey9xx: make phy_ops struct const
authorAtul Gopinathan <leoatul12@gmail.com>
Tue, 9 Feb 2021 08:19:36 +0000 (13:49 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Feb 2021 08:28:19 +0000 (09:28 +0100)
Fix the following type of checkpatch warning:
"WARNING: struct phy_ops should normally be const"

Signed-off-by: Atul Gopinathan <leoatul12@gmail.com>
Link: https://lore.kernel.org/r/20210209081935.3084-2-leoatul12@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/hikey9xx/phy-hi3670-usb3.c

index 8918f36..e7e579c 100644 (file)
@@ -585,7 +585,7 @@ out:
        return ret;
 }
 
-static struct phy_ops hi3670_phy_ops = {
+static const struct phy_ops hi3670_phy_ops = {
        .init           = hi3670_phy_init,
        .exit           = hi3670_phy_exit,
        .owner          = THIS_MODULE,