From 361737650fcd23b20141d289b51aac8a4bd4848c Mon Sep 17 00:00:00 2001 From: Jesse Buhagiar Date: Mon, 23 May 2022 23:55:37 +1000 Subject: [PATCH] Kernel/USB: Make USBConfiguration interfaces accessible These weren't accessible by an accessor, so let's fix that :^) --- Kernel/Bus/USB/USBConfiguration.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Kernel/Bus/USB/USBConfiguration.h b/Kernel/Bus/USB/USBConfiguration.h index 7173d93d749..0b2140a20e7 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 const& interfaces() const { return m_interfaces; } + ErrorOr get_interfaces(); private: