iwlwifi: dbg_ini: use regions ops array instead of switch case in dump flow
authorShahar S Matityahu <shahar.s.matityahu@intel.com>
Tue, 18 Jun 2019 05:24:21 +0000 (08:24 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 6 Sep 2019 12:31:23 +0000 (15:31 +0300)
commitcd6de838e179287cbbfb7b655701183f2d32936e
tree43351d9fbbc7c25164213f5deadcf94df1a89a10
parentbdc62390145687b14dc9806b30ccf56cf66c0087
iwlwifi: dbg_ini: use regions ops array instead of switch case in dump flow

Make a static regions ops array and use it instead of switch case when
determining what op to use to collect a region.

Signed-off-by: Shahar S Matityahu <shahar.s.matityahu@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/dbg.c