Skip to content

Commit d5b8af0

Browse files
erwangonashif
authored andcommitted
include/devicetree: dma.h: Remove deprecated macros
These macros were deprecated in V2.6.0 release. Remove them now. Signed-off-by: Erwan Gouriou <[email protected]>
1 parent 9e36486 commit d5b8af0

File tree

1 file changed

+0
-95
lines changed

1 file changed

+0
-95
lines changed

include/devicetree/dma.h

Lines changed: 0 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -22,88 +22,6 @@ extern "C" {
2222
* @{
2323
*/
2424

25-
/**
26-
* @brief Get a label property from the node referenced by a dmas
27-
* property at an index
28-
*
29-
* It's an error if the DMA controller node referenced by the phandle
30-
* in node_id's dmas property at index "idx" has no label property.
31-
*
32-
* Example devicetree fragment:
33-
*
34-
* dma1: dma@... {
35-
* label = "DMA_1";
36-
* };
37-
*
38-
* dma2: dma@... {
39-
* label = "DMA_2";
40-
* };
41-
*
42-
* n: node {
43-
* dmas = <&dma1 1 2 0x400 0x3>,
44-
* <&dma2 6 3 0x404 0x5>;
45-
* };
46-
*
47-
* Example usage:
48-
*
49-
* DT_DMAS_LABEL_BY_IDX(DT_NODELABEL(n), 1) // "DMA_2"
50-
*
51-
* @param node_id node identifier for a node with a dmas property
52-
* @param idx logical index into dmas property
53-
* @return the label property of the node referenced at index "idx"
54-
*/
55-
#define DT_DMAS_LABEL_BY_IDX(node_id, idx) \
56-
__DEPRECATED_MACRO \
57-
DT_PROP_BY_PHANDLE_IDX(node_id, dmas, idx, label)
58-
59-
/**
60-
* @brief Get a label property from a DT_DRV_COMPAT instance's dmas
61-
* property at an index
62-
* @param inst DT_DRV_COMPAT instance number
63-
* @param idx logical index into dmas property
64-
* @return the label property of the node referenced at index "idx"
65-
* @see DT_DMAS_LABEL_BY_IDX()
66-
*/
67-
#define DT_INST_DMAS_LABEL_BY_IDX(inst, idx) \
68-
__DEPRECATED_MACRO \
69-
DT_DMAS_LABEL_BY_IDX(DT_DRV_INST(inst), idx)
70-
71-
/**
72-
* @brief Get a label property from a dmas property by name
73-
*
74-
* It's an error if the DMA controller node referenced by the phandle
75-
* in node_id's dmas property at the element named "name" has no label
76-
* property.
77-
*
78-
* Example devicetree fragment:
79-
*
80-
* dma1: dma@... {
81-
* label = "DMA_1";
82-
* };
83-
*
84-
* dma2: dma@... {
85-
* label = "DMA_2";
86-
* };
87-
*
88-
* n: node {
89-
* dmas = <&dma1 1 2 0x400 0x3>,
90-
* <&dma2 6 3 0x404 0x5>;
91-
* dma-names = "tx", "rx";
92-
* };
93-
*
94-
* Example usage:
95-
*
96-
* DT_DMAS_LABEL_BY_NAME(DT_NODELABEL(n), rx) // "DMA_2"
97-
*
98-
* @param node_id node identifier for a node with a dmas property
99-
* @param name lowercase-and-underscores name of a dmas element
100-
* as defined by the node's dma-names property
101-
* @return the label property of the node referenced at the named element
102-
*/
103-
#define DT_DMAS_LABEL_BY_NAME(node_id, name) \
104-
__DEPRECATED_MACRO \
105-
DT_PROP(DT_PHANDLE_BY_NAME(node_id, dmas, name), label)
106-
10725
/**
10826
* @brief Get the node identifier for the DMA controller from a
10927
* dmas property at an index
@@ -171,19 +89,6 @@ extern "C" {
17189
*/
17290
#define DT_DMAS_CTLR(node_id) DT_DMAS_CTLR_BY_IDX(node_id, 0)
17391

174-
/**
175-
* @brief Get a label property from a DT_DRV_COMPAT instance's dmas
176-
* property by name
177-
* @param inst DT_DRV_COMPAT instance number
178-
* @param name lowercase-and-underscores name of a dmas element
179-
* as defined by the node's dma-names property
180-
* @return the label property of the node referenced at the named element
181-
* @see DT_DMAS_LABEL_BY_NAME()
182-
*/
183-
#define DT_INST_DMAS_LABEL_BY_NAME(inst, name) \
184-
__DEPRECATED_MACRO \
185-
DT_DMAS_LABEL_BY_NAME(DT_DRV_INST(inst), name)
186-
18792
/**
18893
* @brief Get the node identifier for the DMA controller from a
18994
* DT_DRV_COMPAT instance's dmas property at an index

0 commit comments

Comments
 (0)