xgbe: constify get_netdev_ops and get_ethtool_ops
authorstephen hemminger <stephen@networkplumber.org>
Wed, 31 Aug 2016 15:57:36 +0000 (08:57 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Aug 2016 21:17:30 +0000 (14:17 -0700)
commitce0b15d1103102b78ad95739fa71e62fb16774bd
treea799e9e9b1be57faa04d92ef340c808f120086da
parent07469f8ceb55add2ef771aece078027eb20f88b6
xgbe: constify get_netdev_ops and get_ethtool_ops

Casting away const is bad practice. Since this is ARM specific driver
don't have hardware actually test this.

Having getter functions for ops is really unnecessary code bloat, but
not going to touch that.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c
drivers/net/ethernet/amd/xgbe/xgbe.h