aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sfxge/common/efx_port.c
diff options
context:
space:
mode:
authorAndrew Rybchenko <arybchik@FreeBSD.org>2016-05-12 06:19:06 +0000
committerAndrew Rybchenko <arybchik@FreeBSD.org>2016-05-12 06:19:06 +0000
commitec831f7ff9998acbd016a75a33d4b2ac059166ef (patch)
tree8862055d88c2fa54e254ae3673482507bd5b1b58 /sys/dev/sfxge/common/efx_port.c
parenteeb6394364222289c401422a054d680576b050d2 (diff)
sfxge(4): cleanup: constify common code method tables
Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D6317
Notes
Notes: svn path=/head/; revision=299517
Diffstat (limited to 'sys/dev/sfxge/common/efx_port.c')
-rw-r--r--sys/dev/sfxge/common/efx_port.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/sfxge/common/efx_port.c b/sys/dev/sfxge/common/efx_port.c
index 015f2d82d57e..d2744808a5c0 100644
--- a/sys/dev/sfxge/common/efx_port.c
+++ b/sys/dev/sfxge/common/efx_port.c
@@ -39,7 +39,7 @@ efx_port_init(
__in efx_nic_t *enp)
{
efx_port_t *epp = &(enp->en_port);
- efx_phy_ops_t *epop = epp->ep_epop;
+ const efx_phy_ops_t *epop = epp->ep_epop;
efx_rc_t rc;
EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
@@ -104,7 +104,7 @@ efx_port_poll(
__out_opt efx_link_mode_t *link_modep)
{
efx_port_t *epp = &(enp->en_port);
- efx_mac_ops_t *emop = epp->ep_emop;
+ const efx_mac_ops_t *emop = epp->ep_emop;
efx_link_mode_t ignore_link_mode;
efx_rc_t rc;
@@ -138,7 +138,7 @@ efx_port_loopback_set(
{
efx_port_t *epp = &(enp->en_port);
efx_nic_cfg_t *encp = &(enp->en_nic_cfg);
- efx_mac_ops_t *emop = epp->ep_emop;
+ const efx_mac_ops_t *emop = epp->ep_emop;
efx_rc_t rc;
EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
@@ -234,7 +234,7 @@ efx_port_fini(
__in efx_nic_t *enp)
{
efx_port_t *epp = &(enp->en_port);
- efx_phy_ops_t *epop = epp->ep_epop;
+ const efx_phy_ops_t *epop = epp->ep_epop;
EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PROBE);