net/sfc/base: improve MCDI interface header inclusion
Include efx_mcdi.h from main internal header efx_impl.h directly instead of indirect inclusion via family-specific header. It avoids duplication and fixes Medford and Medford2 cases where the header inclusion is lost. Correctness is still guaranteed by checks in efx_check.h which require EFSYS_OPT_MCDI for corresponding families and do not allow to enable the option if no family requires it. Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
This commit is contained in:
parent
40d2864c8a
commit
a6b9ee49f0
@ -10,6 +10,9 @@
|
||||
#include "efx.h"
|
||||
#include "efx_regs.h"
|
||||
#include "efx_regs_ef10.h"
|
||||
#if EFSYS_OPT_MCDI
|
||||
#include "efx_mcdi.h"
|
||||
#endif /* EFSYS_OPT_MCDI */
|
||||
|
||||
/* FIXME: Add definition for driver generated software events */
|
||||
#ifndef ESE_DZ_EV_CODE_DRV_GEN_EV
|
||||
|
@ -10,7 +10,6 @@
|
||||
#include "efx.h"
|
||||
#include "efx_regs.h"
|
||||
#include "efx_regs_ef10.h"
|
||||
#include "efx_mcdi.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -9,7 +9,6 @@
|
||||
|
||||
#include "efx.h"
|
||||
#include "efx_regs.h"
|
||||
#include "efx_mcdi.h"
|
||||
#include "siena_flash.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
Loading…
Reference in New Issue
Block a user