* @brief Put reference count of all colock in the clock array * * @param clk_arr point to clock array * */
| 1143 | * |
| 1144 | */ |
| 1145 | void rt_clk_array_put(struct rt_clk_array *clk_arr) |
| 1146 | { |
| 1147 | if (clk_arr) |
| 1148 | { |
| 1149 | for (int i = 0; i < clk_arr->count; ++i) |
| 1150 | { |
| 1151 | if (clk_arr->clks[i]) |
| 1152 | { |
| 1153 | rt_clk_put(clk_arr->clks[i]); |
| 1154 | } |
| 1155 | else |
| 1156 | { |
| 1157 | break; |
| 1158 | } |
| 1159 | } |
| 1160 | |
| 1161 | rt_free(clk_arr); |
| 1162 | } |
| 1163 | } |
| 1164 | |
| 1165 | /** |
| 1166 | * @brief Put reference count of clock |
no test coverage detected