OSDN Git Service

iwlwifi: acpi: add common code to read from ACPI
authorLuca Coelho <luciano.coelho@intel.com>
Tue, 19 Sep 2017 09:35:18 +0000 (12:35 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 6 Oct 2017 12:22:28 +0000 (15:22 +0300)
commit813df5cef3bb119940998f2e70cb9016e4b434f7
tree1c0457588b4f2a39fd849fad381703e6e07d595b
parent417795a3f4d634bb50dbffaf2ab9d7f46750b7e8
iwlwifi: acpi: add common code to read from ACPI

There are many places where the same process of invoking a method from
ACPI is used, causing a lot of duplicate code.  To improve this,
introduce a new function to get an ACPI object by invoking an ACPI
method that can be reused.

Additionally, since this function needs to be called when we only have
the trans, the opmode or the device, introduce a new debug macro that
gets the device as a parameter so it can be used in the new function.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/Makefile
drivers/net/wireless/intel/iwlwifi/fw/acpi.c [new file with mode: 0644]
drivers/net/wireless/intel/iwlwifi/fw/acpi.h [new file with mode: 0644]
drivers/net/wireless/intel/iwlwifi/iwl-debug.h
drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c
drivers/net/wireless/intel/iwlwifi/mvm/fw.c
drivers/net/wireless/intel/iwlwifi/pcie/drv.c