linux/drivers/net/ethernet/intel/igc
Jesse Brandeburg 75a3f93b53 net: intel: implement modern PM ops declarations
Switch the Intel networking drivers to use the new power management ops
declaration formats and macros, which allows us to drop __maybe_unused,
as well as a bunch of ifdef checking CONFIG_PM.

This is safe to do because the compiler drops the unused functions,
verified by checking for any of the power management function symbols
being present in System.map for a build without CONFIG_PM.

If a driver has runtime PM, define the ops with pm_ptr(), and if the
driver has Simple PM, use pm_sleep_ptr(), as well as the new versions of
the macros for declaring the members of the pm_ops structs.

Checked with network-enabled allnoconfig, allyesconfig, allmodconfig on
x64_64.

Reviewed-by: Alan Brady <alan.brady@intel.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2024-03-29 08:58:43 -07:00
..
igc.h eth: igc: remove unused embedded struct net_device 2024-03-04 10:09:22 +00:00
igc_base.c
igc_base.h
igc_defines.h
igc_diag.c
igc_diag.h
igc_dump.c
igc_ethtool.c net: intel: igc: Use linkmode helpers for EEE 2024-02-28 12:18:05 +00:00
igc_hw.h
igc_i225.c
igc_i225.h
igc_leds.c igc: Add support for LEDs on i225/i226 2024-02-15 13:38:59 +01:00
igc_mac.c
igc_mac.h
igc_main.c net: intel: implement modern PM ops declarations 2024-03-29 08:58:43 -07:00
igc_nvm.c
igc_nvm.h
igc_phy.c igc: Remove temporary workaround 2024-02-14 09:43:09 -08:00
igc_phy.h
igc_ptp.c
igc_regs.h igc: Add support for LEDs on i225/i226 2024-02-15 13:38:59 +01:00
igc_tsn.c
igc_tsn.h
igc_xdp.c
igc_xdp.h
Makefile igc: Add support for LEDs on i225/i226 2024-02-15 13:38:59 +01:00