]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
staging: gdm724x: gdm_lte: Constify gdm_netdev_ops
authorImre Deak <imre.deak@gmail.com>
Sun, 11 Sep 2016 16:48:08 +0000 (19:48 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Sep 2016 09:40:06 +0000 (11:40 +0200)
Fix the following checkpatch.pl warning:
WARNING: struct net_device_ops should normally be const
+static struct net_device_ops gdm_netdev_ops = {

Signed-off-by: Imre Deak <imre.deak@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gdm724x/gdm_lte.c

index bb552193e4babca3c8cbdcccd7aeb5a5eb610b71..e72dfa9699f3e70a1048aa76b86b3b8ccb8ea874 100644 (file)
@@ -828,7 +828,7 @@ void start_rx_proc(struct phy_dev *phy_dev)
                                rx_complete, phy_dev, USB_COMPLETE);
 }
 
-static struct net_device_ops gdm_netdev_ops = {
+static const struct net_device_ops gdm_netdev_ops = {
        .ndo_open                       = gdm_lte_open,
        .ndo_stop                       = gdm_lte_close,
        .ndo_set_config                 = gdm_lte_set_config,