@@ -22,85 +22,6 @@ extern "C" {
2222 * @{
2323 */
2424
25- /**
26- * @brief Get a label property from the node referenced by an
27- * io-channels property at an index
28- *
29- * It's an error if the node referenced by the phandle in node_id's
30- * io-channels property at index "idx" has no label property.
31- *
32- * Example devicetree fragment:
33- *
34- * adc1: adc@... {
35- * label = "ADC_1";
36- * };
37- *
38- * adc2: adc@... {
39- * label = "ADC_2";
40- * };
41- *
42- * n: node {
43- * io-channels = <&adc1 10>, <&adc2 20>;
44- * };
45- *
46- * Example usage:
47- *
48- * DT_IO_CHANNELS_LABEL_BY_IDX(DT_NODELABEL(n), 1) // "ADC_2"
49- *
50- * @param node_id node identifier for a node with an io-channels property
51- * @param idx logical index into io-channels property
52- * @return the label property of the node referenced at index "idx"
53- * @see DT_PROP_BY_PHANDLE_IDX()
54- */
55- #define DT_IO_CHANNELS_LABEL_BY_IDX (node_id , idx ) \
56- __DEPRECATED_MACRO \
57- DT_PROP_BY_PHANDLE_IDX(node_id, io_channels, idx, label)
58-
59- /**
60- * @brief Get a label property from an io-channels property by name
61- *
62- * It's an error if the node referenced by the phandle in node_id's
63- * io-channels property at the element named "name" has no label
64- * property.
65- *
66- * Example devicetree fragment:
67- *
68- * adc1: adc@... {
69- * label = "ADC_1";
70- * };
71- *
72- * adc2: adc@... {
73- * label = "ADC_2";
74- * };
75- *
76- * n: node {
77- * io-channels = <&adc1 10>, <&adc2 20>;
78- * io-channel-names = "SENSOR", "BANDGAP";
79- * };
80- *
81- * Example usage:
82- *
83- * DT_IO_CHANNELS_LABEL_BY_NAME(DT_NODELABEL(n), bandgap) // "ADC_2"
84- *
85- * @param node_id node identifier for a node with an io-channels property
86- * @param name lowercase-and-underscores name of an io-channels element
87- * as defined by the node's io-channel-names property
88- * @return the label property of the node referenced at the named element
89- * @see DT_PHANDLE_BY_NAME()
90- */
91- #define DT_IO_CHANNELS_LABEL_BY_NAME (node_id , name ) \
92- __DEPRECATED_MACRO \
93- DT_PROP(DT_PHANDLE_BY_NAME(node_id, io_channels, name), label)
94-
95- /**
96- * @brief Equivalent to DT_IO_CHANNELS_LABEL_BY_IDX(node_id, 0)
97- * @param node_id node identifier for a node with an io-channels property
98- * @return the label property of the node referenced at index 0
99- * @see DT_IO_CHANNELS_LABEL_BY_IDX()
100- */
101- #define DT_IO_CHANNELS_LABEL (node_id ) \
102- __DEPRECATED_MACRO DT_IO_CHANNELS_LABEL_BY_IDX(node_id, 0)
103-
10425/**
10526 *
10627 * @brief Get the node identifier for the node referenced by an
@@ -167,39 +88,6 @@ extern "C" {
16788 */
16889#define DT_IO_CHANNELS_CTLR (node_id ) DT_IO_CHANNELS_CTLR_BY_IDX(node_id, 0)
16990
170- /**
171- * @brief Get a label property from a DT_DRV_COMPAT instance's io-channels
172- * property at an index
173- * @param inst DT_DRV_COMPAT instance number
174- * @param idx logical index into io-channels property
175- * @return the label property of the node referenced at index "idx"
176- * @see DT_IO_CHANNELS_LABEL_BY_IDX()
177- */
178- #define DT_INST_IO_CHANNELS_LABEL_BY_IDX (inst , idx ) \
179- __DEPRECATED_MACRO \
180- DT_IO_CHANNELS_LABEL_BY_IDX(DT_DRV_INST(inst), idx)
181-
182- /**
183- * @brief Get a label property from a DT_DRV_COMPAT instance's io-channels
184- * property by name
185- * @param inst DT_DRV_COMPAT instance number
186- * @param name lowercase-and-underscores name of an io-channels element
187- * as defined by the instance's io-channel-names property
188- * @return the label property of the node referenced at the named element
189- * @see DT_IO_CHANNELS_LABEL_BY_NAME()
190- */
191- #define DT_INST_IO_CHANNELS_LABEL_BY_NAME (inst , name ) \
192- __DEPRECATED_MACRO \
193- DT_IO_CHANNELS_LABEL_BY_NAME(DT_DRV_INST(inst), name)
194-
195- /**
196- * @brief Equivalent to DT_INST_IO_CHANNELS_LABEL_BY_IDX(inst, 0)
197- * @param inst DT_DRV_COMPAT instance number
198- * @return the label property of the node referenced at index 0
199- */
200- #define DT_INST_IO_CHANNELS_LABEL (inst ) \
201- __DEPRECATED_MACRO DT_INST_IO_CHANNELS_LABEL_BY_IDX(inst, 0)
202-
20391/**
20492 * @brief Get the node identifier from a DT_DRV_COMPAT instance's io-channels
20593 * property at an index
0 commit comments