summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorJesse Buhagiar <jooster669@gmail.com>2022-05-23 23:55:37 +1000
committerAndreas Kling <kling@serenityos.org>2022-06-02 13:14:29 +0200
commit361737650fcd23b20141d289b51aac8a4bd4848c (patch)
tree78b1924c4a1a1c11ac2db67115df129cba21fdee /Kernel
parentf98dad94fbce72d732554482397cc9d8a416b236 (diff)
downloadserenity-361737650fcd23b20141d289b51aac8a4bd4848c.zip
Kernel/USB: Make USBConfiguration interfaces accessible
These weren't accessible by an accessor, so let's fix that :^)
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/Bus/USB/USBConfiguration.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/Bus/USB/USBConfiguration.h b/Kernel/Bus/USB/USBConfiguration.h
index 7173d93d74..0b2140a20e 100644
--- a/Kernel/Bus/USB/USBConfiguration.h
+++ b/Kernel/Bus/USB/USBConfiguration.h
@@ -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: