net/sfc/base: make NIC pointer const in NIC config get
The change is needed for the functions that accept const efx_nic_t pointer and have to get efx_nic_cfg_t. Signed-off-by: Igor Romanov <igor.romanov@oktetlabs.ru> Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
This commit is contained in:
parent
217688651d
commit
70c9ab84b2
@ -1409,7 +1409,7 @@ typedef struct efx_nic_cfg_s {
|
||||
|
||||
extern const efx_nic_cfg_t *
|
||||
efx_nic_cfg_get(
|
||||
__in efx_nic_t *enp);
|
||||
__in const efx_nic_t *enp);
|
||||
|
||||
/* RxDPCPU firmware id values by which FW variant can be identified */
|
||||
#define EFX_RXDP_FULL_FEATURED_FW_ID 0x0
|
||||
|
@ -595,7 +595,7 @@ fail1:
|
||||
|
||||
const efx_nic_cfg_t *
|
||||
efx_nic_cfg_get(
|
||||
__in efx_nic_t *enp)
|
||||
__in const efx_nic_t *enp)
|
||||
{
|
||||
EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
|
||||
EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PROBE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user