common/sfc_efx/base: factor out MCDI wrapper to set LEDs
authorAndrew Rybchenko <arybchenko@solarflare.com>
Tue, 13 Oct 2020 13:45:21 +0000 (14:45 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 16 Oct 2020 17:48:17 +0000 (19:48 +0200)
commit6194d9dcd6cdb2ca97e53fa7a6acb2e14d6844b6
tree67fe00aaadb2d354f2426ee6f3b540cecc736bd1
parent252b2aec3938b1f1739b7468dbb3ac7a6003d84f
common/sfc_efx/base: factor out MCDI wrapper to set LEDs

For consistency it is better to have separate MCDI wrappers.

Make efx_phy_led_mode_t visible even if EFSYS_OPT_PHY_LED_CONTROL
is disabled to be able to use it in the added wrapper arguments.

Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: Andy Moreton <amoreton@xilinx.com>
drivers/common/sfc_efx/base/ef10_phy.c
drivers/common/sfc_efx/base/efx.h