Bluetooth: qca: use switch case for soc type behavior
authorNeil Armstrong <neil.armstrong@linaro.org>
Wed, 16 Aug 2023 08:06:47 +0000 (10:06 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 24 Aug 2023 19:20:54 +0000 (12:20 -0700)
commit691d54d0f7cb14baac1ff4af210d13c0e4897e27
treec8a41bf173b59953f8632ec7a68c5b1b1e30e845
parent9f19fb8fa1e1f55537fa74b90538ac44da68749c
Bluetooth: qca: use switch case for soc type behavior

Use switch/case to handle soc type specific behaviour,
the permit dropping the qca_is_xxx() inline functions
and make the code clearer and easier to update for new
SoCs.

Suggested-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Suggested-by: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btqca.c
drivers/bluetooth/btqca.h
drivers/bluetooth/hci_qca.c