include/devicetree: clocks.h: Remove deprecated macros
These macros were deprecated in V2.6.0 release. Remove them now. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
2f7b5ad8ea
commit
0a32afdd75
|
@ -87,85 +87,6 @@ extern "C" {
|
|||
#define DT_CLOCKS_CTLR_BY_NAME(node_id, name) \
|
||||
DT_PHANDLE_BY_NAME(node_id, clocks, name)
|
||||
|
||||
/**
|
||||
* @brief Get a label property from the node referenced by a pwms
|
||||
* property at an index
|
||||
*
|
||||
* It's an error if the clock controller node referenced by the
|
||||
* phandle in node_id's clocks property at index "idx" has no label
|
||||
* property.
|
||||
*
|
||||
* Example devicetree fragment:
|
||||
*
|
||||
* clk1: clock-controller@... {
|
||||
* label = "CLK_1";
|
||||
* };
|
||||
*
|
||||
* clk2: clock-controller@... {
|
||||
* label = "CLK_2";
|
||||
* };
|
||||
*
|
||||
* n: node {
|
||||
* clocks = <&clk1 10 20>, <&clk2 30 40>;
|
||||
* };
|
||||
*
|
||||
* Example usage:
|
||||
*
|
||||
* DT_CLOCKS_LABEL_BY_IDX(DT_NODELABEL(n), 1) // "CLK_2"
|
||||
*
|
||||
* @param node_id node identifier for a node with a clocks property
|
||||
* @param idx logical index into clocks property
|
||||
* @return the label property of the node referenced at index "idx"
|
||||
* @see DT_PROP_BY_PHANDLE_IDX()
|
||||
*/
|
||||
#define DT_CLOCKS_LABEL_BY_IDX(node_id, idx) \
|
||||
__DEPRECATED_MACRO \
|
||||
DT_PROP_BY_PHANDLE_IDX(node_id, clocks, idx, label)
|
||||
|
||||
/**
|
||||
* @brief Get a label property from a clocks property by name
|
||||
*
|
||||
* It's an error if the clock controller node referenced by the
|
||||
* phandle in node_id's clocks property at the element named "name"
|
||||
* has no label property.
|
||||
*
|
||||
* Example devicetree fragment:
|
||||
*
|
||||
* clk1: clock-controller@... {
|
||||
* label = "CLK_1";
|
||||
* };
|
||||
*
|
||||
* clk2: clock-controller@... {
|
||||
* label = "CLK_2";
|
||||
* };
|
||||
*
|
||||
* n: node {
|
||||
* clocks = <&clk1 10 20>, <&clk2 30 40>;
|
||||
* clock-names = "alpha", "beta";
|
||||
* };
|
||||
*
|
||||
* Example usage:
|
||||
*
|
||||
* DT_CLOCKS_LABEL_BY_NAME(DT_NODELABEL(n), beta) // "CLK_2"
|
||||
*
|
||||
* @param node_id node identifier for a node with a clocks property
|
||||
* @param name lowercase-and-underscores name of a clocks element
|
||||
* as defined by the node's clock-names property
|
||||
* @return the label property of the node referenced at the named element
|
||||
* @see DT_PHANDLE_BY_NAME()
|
||||
*/
|
||||
#define DT_CLOCKS_LABEL_BY_NAME(node_id, name) \
|
||||
__DEPRECATED_MACRO \
|
||||
DT_PROP(DT_PHANDLE_BY_NAME(node_id, clocks, name), label)
|
||||
|
||||
/**
|
||||
* @brief Equivalent to DT_CLOCKS_LABEL_BY_IDX(node_id, 0)
|
||||
* @param node_id node identifier for a node with a clocks property
|
||||
* @return the label property of the node referenced at index 0
|
||||
* @see DT_CLOCKS_LABEL_BY_IDX()
|
||||
*/
|
||||
#define DT_CLOCKS_LABEL(node_id) __DEPRECATED_MACRO DT_CLOCKS_LABEL_BY_IDX(node_id, 0)
|
||||
|
||||
/**
|
||||
* @brief Get a clock specifier's cell value at an index
|
||||
*
|
||||
|
@ -281,39 +202,6 @@ extern "C" {
|
|||
#define DT_INST_CLOCKS_CTLR_BY_NAME(inst, name) \
|
||||
DT_CLOCKS_CTLR_BY_NAME(DT_DRV_INST(inst), name)
|
||||
|
||||
/**
|
||||
* @brief Get a label property from a DT_DRV_COMPAT instance's clocks
|
||||
* property at an index
|
||||
* @param inst DT_DRV_COMPAT instance number
|
||||
* @param idx logical index into clocks property
|
||||
* @return the label property of the node referenced at index "idx"
|
||||
* @see DT_CLOCKS_LABEL_BY_IDX()
|
||||
*/
|
||||
#define DT_INST_CLOCKS_LABEL_BY_IDX(inst, idx) \
|
||||
__DEPRECATED_MACRO \
|
||||
DT_CLOCKS_LABEL_BY_IDX(DT_DRV_INST(inst), idx)
|
||||
|
||||
/**
|
||||
* @brief Get a label property from a DT_DRV_COMPAT instance's clocks
|
||||
* property by name
|
||||
* @param inst DT_DRV_COMPAT instance number
|
||||
* @param name lowercase-and-underscores name of a clocks element
|
||||
* as defined by the node's clock-names property
|
||||
* @return the label property of the node referenced at the named element
|
||||
* @see DT_CLOCKS_LABEL_BY_NAME()
|
||||
*/
|
||||
#define DT_INST_CLOCKS_LABEL_BY_NAME(inst, name) \
|
||||
__DEPRECATED_MACRO \
|
||||
DT_CLOCKS_LABEL_BY_NAME(DT_DRV_INST(inst), name)
|
||||
|
||||
/**
|
||||
* @brief Equivalent to DT_INST_CLOCKS_LABEL_BY_IDX(inst, 0)
|
||||
* @param inst DT_DRV_COMPAT instance number
|
||||
* @return the label property of the node referenced at index 0
|
||||
* @see DT_CLOCKS_LABEL_BY_IDX()
|
||||
*/
|
||||
#define DT_INST_CLOCKS_LABEL(inst) DT_INST_CLOCKS_LABEL_BY_IDX(inst, 0) __DEPRECATED_MACRO
|
||||
|
||||
/**
|
||||
* @brief Get a DT_DRV_COMPAT instance's clock specifier's cell value
|
||||
* at an index
|
||||
|
|
Loading…
Reference in a new issue