| 278 | } |
| 279 | |
| 280 | bool device_is_compatible(const struct Device* device, const char* compatible) { |
| 281 | if (device->internal->driver == nullptr) return false; |
| 282 | return driver_is_compatible(device->internal->driver, compatible); |
| 283 | } |
| 284 | |
| 285 | void device_set_driver_data(struct Device* device, void* driver_data) { |
| 286 | device->internal->driver_data = driver_data; |
nothing calls this directly
no test coverage detected