diff options
author | Stephen Hemminger <shemminger@osdl.org> | 2006-09-08 18:16:13 (GMT) |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-09-13 17:30:47 (GMT) |
commit | 76fd85937097a0c2ec8ab23bf21dc10992d1c398 (patch) | |
tree | 0a3dfbacda717b9c55dfd25f6b773016a9a8910a /include/linux/netdevice.h | |
parent | f65b138ca94326bbffe06ddc28e65606a249e58e (diff) | |
download | linux-fsl-qoriq-76fd85937097a0c2ec8ab23bf21dc10992d1c398.tar.xz |
[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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 50a4719..a2e7473 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 |