summaryrefslogtreecommitdiff
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@osdl.org>2006-09-08 11:16:13 -0700
committerJeff Garzik <jeff@garzik.org>2006-09-13 13:30:47 -0400
commit76fd85937097a0c2ec8ab23bf21dc10992d1c398 (patch)
tree0a3dfbacda717b9c55dfd25f6b773016a9a8910a /include/linux/netdevice.h
parentf65b138ca94326bbffe06ddc28e65606a249e58e (diff)
downloadlwn-76fd85937097a0c2ec8ab23bf21dc10992d1c398.tar.gz
lwn-76fd85937097a0c2ec8ab23bf21dc10992d1c398.zip
[PATCH] ethtool: allow const ethtool_ops
The ethtool_ops structure is immutable, it expected to be setup by the driver and is never changed. This patch allows drivers to declare there ethtool_ops structure read-only. Signed-off-by: Stephen Hemminger <shemminger@osdl.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 50a4719512ed..a2e747353367 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -342,7 +342,7 @@ struct net_device
/* Instance data managed by the core of Wireless Extensions. */
struct iw_public_data * wireless_data;
- struct ethtool_ops *ethtool_ops;
+ const struct ethtool_ops *ethtool_ops;
/*
* This marks the end of the "visible" part of the structure. All