Przeglądaj źródła

Kernel/USB: Rename `get_interfaces` to something more sensible

This name was misleading, as it wasn't really "getting" anything. It has
hence been renamed to `enumerate_interfaces` to reflect what it's
actually doing.
Jesse Buhagiar 3 lat temu
rodzic
commit
a1ed9d3c60

+ 1 - 1
Kernel/Bus/USB/USBConfiguration.cpp

@@ -12,7 +12,7 @@
 
 
 namespace Kernel::USB {
 namespace Kernel::USB {
 
 
-ErrorOr<void> USBConfiguration::get_interfaces()
+ErrorOr<void> USBConfiguration::enumerate_interfaces()
 {
 {
     auto descriptor_hierarchy_buffer = TRY(FixedArray<u8>::try_create(m_descriptor.total_length)); // Buffer for us to store the entire hierarchy into
     auto descriptor_hierarchy_buffer = TRY(FixedArray<u8>::try_create(m_descriptor.total_length)); // Buffer for us to store the entire hierarchy into
 
 

+ 1 - 1
Kernel/Bus/USB/USBConfiguration.h

@@ -35,7 +35,7 @@ public:
 
 
     Vector<USBInterface> const& interfaces() const { return m_interfaces; }
     Vector<USBInterface> const& interfaces() const { return m_interfaces; }
 
 
-    ErrorOr<void> get_interfaces();
+    ErrorOr<void> enumerate_interfaces();
 
 
 private:
 private:
     Device& m_device;                              // Reference to the device linked to this configuration
     Device& m_device;                              // Reference to the device linked to this configuration

+ 1 - 1
Kernel/Bus/USB/USBDevice.cpp

@@ -132,7 +132,7 @@ ErrorOr<void> Device::enumerate_device()
         }
         }
 
 
         USBConfiguration device_configuration(*this, configuration_descriptor);
         USBConfiguration device_configuration(*this, configuration_descriptor);
-        TRY(device_configuration.get_interfaces());
+        TRY(device_configuration.enumerate_interfaces());
         m_configurations.append(device_configuration);
         m_configurations.append(device_configuration);
     }
     }