summaryrefslogtreecommitdiff
path: root/drivers/bluetooth/btmtk.h
diff options
context:
space:
mode:
authorSean Wang <sean.wang@mediatek.com>2024-05-15 16:15:17 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2024-07-14 21:33:26 -0400
commit00f993fdec06c8f036a1b9c8ee6b004c17143bd1 (patch)
treed3cc597aaa384b51fcb230dd8ba05281f758ae3f /drivers/bluetooth/btmtk.h
parent0a3e2eca1daa5627c8ecd1554e3146de82d61dd2 (diff)
downloadlinux-next-00f993fdec06c8f036a1b9c8ee6b004c17143bd1.tar.gz
linux-next-00f993fdec06c8f036a1b9c8ee6b004c17143bd1.zip
Bluetooth: btmtk: add the function to get the fw name
Include a shared function to get the firmware name, to prevent repeating code for similar chipsets. Signed-off-by: Sean Wang <sean.wang@mediatek.com> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'drivers/bluetooth/btmtk.h')
-rw-r--r--drivers/bluetooth/btmtk.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/bluetooth/btmtk.h b/drivers/bluetooth/btmtk.h
index cbcdb99a22e6..e76b8a358be8 100644
--- a/drivers/bluetooth/btmtk.h
+++ b/drivers/bluetooth/btmtk.h
@@ -160,6 +160,9 @@ int btmtk_register_coredump(struct hci_dev *hdev, const char *name,
u32 fw_version);
int btmtk_process_coredump(struct hci_dev *hdev, struct sk_buff *skb);
+
+void btmtk_fw_get_filename(char *buf, size_t size, u32 dev_id, u32 fw_ver,
+ u32 fw_flavor);
#else
static inline int btmtk_set_bdaddr(struct hci_dev *hdev,
@@ -194,4 +197,9 @@ static int btmtk_process_coredump(struct hci_dev *hdev, struct sk_buff *skb)
{
return -EOPNOTSUPP;
}
+
+static void btmtk_fw_get_filename(char *buf, size_t size, u32 dev_id,
+ u32 fw_ver, u32 fw_flavor)
+{
+}
#endif