From ee57cf3e9ae68219e4c8567f318f7b4400c88ad3 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Thu, 8 Jan 2026 13:45:17 +0200 Subject: [PATCH] Kernel: Expose usb device's device descriptor This is used by the joystick detection code but i forgot to commit this :D --- kernel/include/kernel/USB/Device.h | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/include/kernel/USB/Device.h b/kernel/include/kernel/USB/Device.h index b63d5de9..03ede93a 100644 --- a/kernel/include/kernel/USB/Device.h +++ b/kernel/include/kernel/USB/Device.h @@ -75,6 +75,7 @@ namespace Kernel BAN::ErrorOr initialize(); + const USBDeviceDescriptor& device_descriptor() const { return m_descriptor.descriptor; } const BAN::Vector& configurations() { return m_descriptor.configurations; } virtual BAN::ErrorOr initialize_device_on_hub_port(uint8_t port_id, USB::SpeedClass) = 0;