| 215 | } |
| 216 | |
| 217 | static void reset_free(struct rt_reset_control *rstc) |
| 218 | { |
| 219 | if (rstc->is_array) |
| 220 | { |
| 221 | struct reset_control_array *rstc_arr = reset_control_to_array(rstc); |
| 222 | |
| 223 | for (int i = 0; i < rstc_arr->count; ++i) |
| 224 | { |
| 225 | rt_reset_control_put(rstc_arr->rstcs[i]); |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | rt_free(rstc); |
| 230 | } |
| 231 | |
| 232 | struct rt_reset_control *rt_reset_control_get_array(struct rt_device *dev) |
| 233 | { |
no test coverage detected