diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2021-09-05 10:02:03 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-05 20:46:02 +0200 |
commit | bb58a4d94394ae19e0b850b15cfb105c91a1ee7b (patch) | |
tree | 95e33e16bd0685ff3a7e5f3c287be64cea0f7532 /Kernel/Devices/HID/KeyboardDevice.h | |
parent | 5905d2e9e9380f6c4d0fc370ba8271371e87e1d3 (diff) | |
download | serenity-bb58a4d94394ae19e0b850b15cfb105c91a1ee7b.zip |
Kernel: Make all Spinlocks use u8 for storage, remove template
The default template argument is only used in one place, and it
looks like it was probably just an oversight. The rest of the Kernel
code all uses u8 as the type. So lets make that the default and remove
the unused template argument, as there doesn't seem to be a reason to
allow the size to be customizable.
Diffstat (limited to 'Kernel/Devices/HID/KeyboardDevice.h')
-rw-r--r-- | Kernel/Devices/HID/KeyboardDevice.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Devices/HID/KeyboardDevice.h b/Kernel/Devices/HID/KeyboardDevice.h index 2a7fff18c7..cbb705b605 100644 --- a/Kernel/Devices/HID/KeyboardDevice.h +++ b/Kernel/Devices/HID/KeyboardDevice.h @@ -51,7 +51,7 @@ public: protected: KeyboardDevice(); - mutable Spinlock<u8> m_queue_lock; + mutable Spinlock m_queue_lock; CircularQueue<Event, 16> m_queue; // ^CharacterDevice virtual StringView class_name() const override { return "KeyboardDevice"; } |