mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
Kernel/USB: Get all interface descriptors on enumeration
This creates all interfaces when the device is enumerated, with a link to the configuration that it is a part of. As such, a new class, `USBInterface` has been introduced to express this state.
This commit is contained in:
committed by
Andreas Kling
parent
d313fa98ec
commit
300dcb6f5e
@@ -132,6 +132,7 @@ ErrorOr<void> Device::enumerate_device()
|
||||
}
|
||||
|
||||
USBConfiguration device_configuration(*this, configuration_descriptor);
|
||||
TRY(device_configuration.get_interfaces());
|
||||
m_configurations.append(device_configuration);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user