* @brief Get clock array pointer from ofw device node * * @param dev point to dev * * @return struct rt_clk_array* if use ofw and under normal circumstance, it will return clock array pointer and other value is RT_NULL */
| 1086 | clock array pointer and other value is RT_NULL |
| 1087 | */ |
| 1088 | struct rt_clk_array *rt_clk_get_array(struct rt_device *dev) |
| 1089 | { |
| 1090 | struct rt_clk_array *clk_arr = RT_NULL; |
| 1091 | |
| 1092 | #ifdef RT_USING_OFW |
| 1093 | clk_arr = rt_ofw_get_clk_array(dev->ofw_node); |
| 1094 | #endif |
| 1095 | |
| 1096 | return clk_arr; |
| 1097 | } |
| 1098 | |
| 1099 | /** |
| 1100 | * @brief Get clock pointer from ofw device node by index |
nothing calls this directly
no test coverage detected