iwlwifi: acpi: use iwl_acpi_get_wifi_pkg when reading reading SPLC
authorLuca Coelho <luciano.coelho@intel.com>
Thu, 21 Sep 2017 11:45:27 +0000 (14:45 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 6 Oct 2017 12:22:30 +0000 (15:22 +0300)
commit45a5c6f68b2649ccb71721b95be22720f04b2bc3
tree2ce57b48dfe9a579d79074e785f8b0bb1e6ce7be
parent2fa388cfeb1af9fa94acc7fd1b250fb863fb5d91
iwlwifi: acpi: use iwl_acpi_get_wifi_pkg when reading reading SPLC

Instead of finding the wifi package with its own code, we can reuse
the new iwl_acpi_get_wifi_pkg() function when reading the default
power limit from SPLC.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/acpi.h
drivers/net/wireless/intel/iwlwifi/pcie/drv.c