mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
Kernel/USB: Make USBConfiguration interfaces accessible
These weren't accessible by an accessor, so let's fix that :^)
This commit is contained in:
parent
f98dad94fb
commit
361737650f
Notes:
sideshowbarker
2024-07-17 10:32:20 +09:00
Author: https://github.com/Quaker762 Commit: https://github.com/SerenityOS/serenity/commit/361737650f Pull-request: https://github.com/SerenityOS/serenity/pull/14134 Reviewed-by: https://github.com/b14ckcat Reviewed-by: https://github.com/linusg
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue