diff mbox series

[3/3] Bluetooth: btrtl: allow longer config file name

Message ID BYAPR20MB24725656E0878F7506E16411BCF79@BYAPR20MB2472.namprd20.prod.outlook.com
State New
Headers show
Series [1/3] Bluetooth: btrtl: try config w/o postfix if postfixed one failed to load | expand

Commit Message

icenowy@outlook.com April 22, 2022, 4:02 p.m. UTC
From: Icenowy Zheng <icenowy@sipeed.com>

As we now use board compatible as postfix on DT platform, we're going to
have long postfix strings.

Allow a longer config file name then. The value 320 is taken from
brcmfmac driver, which has a similar behavior.

Signed-off-by: Icenowy Zheng <icenowy@sipeed.com>
---
 drivers/bluetooth/btrtl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/bluetooth/btrtl.c b/drivers/bluetooth/btrtl.c
index 1f834513762b..383428977a7a 100644
--- a/drivers/bluetooth/btrtl.c
+++ b/drivers/bluetooth/btrtl.c
@@ -591,7 +591,7 @@  struct btrtl_device_info *btrtl_initialize(struct hci_dev *hdev,
 	struct btrtl_device_info *btrtl_dev;
 	struct sk_buff *skb;
 	struct hci_rp_read_local_version *resp;
-	char cfg_name[40];
+	char cfg_name[320];
 	u16 hci_rev, lmp_subver;
 	u8 hci_ver;
 	int ret;