Kernel/USB: Make USBConfiguration interfaces accessible

These weren't accessible by an accessor, so let's fix that :^)
This commit is contained in:
Jesse Buhagiar 2022-05-23 23:55:37 +10:00 committed by Andreas Kling
parent f98dad94fb
commit 361737650f
Notes: sideshowbarker 2024-07-17 10:32:20 +09:00

View file

@ -33,6 +33,8 @@ public:
u8 attributes() const { return m_descriptor.attributes_bitmap; }
u16 max_power_ma() const { return m_descriptor.max_power_in_ma * 2u; } // Note: "Power" is used incorrectly here, however it's what it's called in the descriptor/documentation
Vector<USBInterface> const& interfaces() const { return m_interfaces; }
ErrorOr<void> get_interfaces();
private: