[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>
This commit is contained in:
Stephen Hemminger
2006-09-08 11:16:13 -07:00
committed by Jeff Garzik
parent f65b138ca9
commit 76fd859370
2 changed files with 8 additions and 8 deletions

View File

@ -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