diff options
author | Luke <luke.wilde@live.co.uk> | 2021-08-14 00:20:53 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-14 21:22:44 +0200 |
commit | b6a2bbba3b20a748f53e976d22608be6746a8c3b (patch) | |
tree | ca8fafd46cb713458fd3ff54904fd6b90090d610 /Kernel/FutexQueue.h | |
parent | 86ccacf6b52ddfdfadd0617b8d35c91e64cb1939 (diff) | |
download | serenity-b6a2bbba3b20a748f53e976d22608be6746a8c3b.zip |
Kernel/USB: Replace PortNumber enum with a raw u8
A hub can technically have up to 255 ports, given that bNbrPorts is a
u8 and the DeviceRemovable field is a VLA to support up to 255 ports.
Source: USB 2.0 Specification Section 11.23.2.1
That means this enum is not going to scale well in terms of size.
Replacing it with a raw u8 allows me to remove the two port assumption
and a cast.
Diffstat (limited to 'Kernel/FutexQueue.h')
0 files changed, 0 insertions, 0 deletions