Skip to contentSkip to conversation

staging: gdm724x: gdm_lte: Constify gdm_netdev_ops

PATCH New Imre Deak 1 participant 1 message Sep 11, 2016 Staging

lore
Share & tools
lore

Imre Deak

author
#0 lore raw

PATCH 1/1 staging: gdm724x: gdm_lte: Constify gdm_netdev_ops

Fix the following checkpatch.pl warning:
WARNING: struct net_device_ops should normally be const +static struct net_device_ops gdm_netdev_ops = {

---
 drivers/staging/gdm724x/gdm_lte.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/gdm724x/gdm_lte.c +1 -1
index bb55219..e72dfa9 100644
@@ -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,
Signature · 1 line
2.5.0