File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 66
66
};
67
67
68
68
/** Possible values for the 'bus' member of the bt_hci_driver struct */
69
- enum bt_hci_bus {
69
+ enum __deprecated bt_hci_bus { /* Use macro BT_DT_HCI_BUS_GET() instead */
70
70
BT_HCI_BUS_VIRTUAL = 0 ,
71
71
BT_HCI_BUS_USB = 1 ,
72
72
BT_HCI_BUS_PCCARD = 2 ,
@@ -94,7 +94,9 @@ enum bt_hci_bus {
94
94
#define BT_DT_HCI_NAME_GET (node_id ) DT_PROP_OR(node_id, bt_hci_name, "HCI")
95
95
#define BT_DT_HCI_NAME_INST_GET (inst ) BT_DT_HCI_NAME_GET(DT_DRV_INST(inst))
96
96
97
- #define BT_DT_HCI_BUS_GET (node_id ) DT_ENUM_IDX_OR(node_id, bt_hci_bus, BT_HCI_BUS_VIRTUAL)
97
+ /* Fallback default when there's no property, same as "virtual" */
98
+ #define BT_PRIV_HCI_BUS_DEFAULT (0)
99
+ #define BT_DT_HCI_BUS_GET (node_id ) DT_ENUM_IDX_OR(node_id, bt_hci_bus, BT_PRIV_HCI_BUS_DEFAULT)
98
100
99
101
#define BT_DT_HCI_BUS_INST_GET (inst ) BT_DT_HCI_BUS_GET(DT_DRV_INST(inst))
100
102
You can’t perform that action at this time.
0 commit comments