Skip to content

Commit ab8216a

Browse files
jhedbergmark-inderhees
authored andcommitted
Bluetooth: drivers: Rename IPM to IPC
This bus type was originally created for what's today the ipc.c HCI driver. Since this type hasn't yet been synced with BlueZ, rename it for consistency, however leave the old define to not break backwards compatibility with existing DT bindings (there are several more that use "ipm" than ipc.c). Signed-off-by: Johan Hedberg <[email protected]>
1 parent b482941 commit ab8216a

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

dts/bindings/bluetooth/bt-hci.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ properties:
2121
- "i2c"
2222
- "smd"
2323
- "virtio"
24-
- "ipm"
24+
- "ipm" # Deprecated. "ipc" should be used instead.
25+
- "ipc"
2526
bt-hci-quirks:
2627
type: string-array
2728
description: HCI device quirks

dts/bindings/bluetooth/zephyr,bt-hci-ipc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ properties:
88
bt-hci-name:
99
default: "IPC"
1010
bt-hci-bus:
11-
default: "ipm"
11+
default: "ipc"
1212
bt-hci-quirks:
1313
default: ["no-auto-dle"]
1414
bt-hci-ipc-name:

include/zephyr/drivers/bluetooth.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ enum bt_hci_bus {
7171
BT_HCI_BUS_I2C = 8,
7272
BT_HCI_BUS_SMD = 9,
7373
BT_HCI_BUS_VIRTIO = 10,
74-
BT_HCI_BUS_IPM = 11,
74+
BT_HCI_BUS_IPC = 11,
75+
/* IPM is deprecated and simply an alias for IPC */
76+
BT_HCI_BUS_IPM = BT_HCI_BUS_IPC,
7577
};
7678

7779
#define BT_DT_HCI_QUIRK_OR(node_id, prop, idx) \

0 commit comments

Comments
 (0)