Remove a child from the list of children */
| 100 | |
| 101 | /** Remove a child from the list of children */ |
| 102 | static void device_remove_child(struct Device* device, struct Device* child) { |
| 103 | device_lock(device); |
| 104 | const auto iterator = std::ranges::find(device->internal->children, child); |
| 105 | if (iterator != device->internal->children.end()) { |
| 106 | device->internal->children.erase(iterator); |
| 107 | } |
| 108 | device_unlock(device); |
| 109 | } |
| 110 | |
| 111 | error_t device_add(Device* device) { |
| 112 | LOG_D(TAG, "add %s", device->name); |
no test coverage detected