]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite785c33d7c73b3b7d88dd196791436c16f48ce39
tree1c0457588b4f2a39fd849fad381703e6e07d595b
parent17f92e4745b0e55d06e401183d87308169293672
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