]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: iwlwifi: Add helper function to extract device ID
authorPagadala Yesu Anjaneyulu <pagadala.yesu.anjaneyulu@intel.com>
Sun, 11 May 2025 16:53:08 +0000 (19:53 +0300)
committerMiri Korenblit <miriam.rachel.korenblit@intel.com>
Mon, 12 May 2025 14:19:03 +0000 (17:19 +0300)
commitfabddb0267607d483408308d113ec8599038ec04
tree66fff6b5f62c927f585561c2831c390ca7be82a9
parent691f1f69ba312410a1fe16fff071ac7fbced1fc7
wifi: iwlwifi: Add helper function to extract device ID

Add iwl_trans_get_device_id() to extract the device ID
from the hw_id member in the iwl_trans structure.
hw_id member contains both sub-device ID and device ID,
with the device ID occupying bits 16 to 31.

Signed-off-by: Pagadala Yesu Anjaneyulu <pagadala.yesu.anjaneyulu@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250511195137.4411402701f2.I81cde20de05e3bb993977f8d4bbf90707819347f@changeid
drivers/net/wireless/intel/iwlwifi/iwl-trans.h