aboutsummaryrefslogtreecommitdiff
path: root/hw/input/adb-kbd.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-10-17 15:05:00 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2023-10-19 23:13:28 +0200
commitb1be65f6436f53618408d9c6fc6959054f5afed6 (patch)
tree664d1a3f87e6d78c5476e06d199ac79c34397942 /hw/input/adb-kbd.c
parent08d45942972ada0e4d051799fb8ba1b47225a6b3 (diff)
downloadqemu-b1be65f6436f53618408d9c6fc6959054f5afed6.zip
qemu-b1be65f6436f53618408d9c6fc6959054f5afed6.tar.gz
qemu-b1be65f6436f53618408d9c6fc6959054f5afed6.tar.bz2
ui/input: Constify QemuInputHandler structure
Access to QemuInputHandlerState::handler are read-only. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Message-Id: <20231017131251.43708-1-philmd@linaro.org>
Diffstat (limited to 'hw/input/adb-kbd.c')
-rw-r--r--hw/input/adb-kbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/input/adb-kbd.c b/hw/input/adb-kbd.c
index a9088c9..e21edf9 100644
--- a/hw/input/adb-kbd.c
+++ b/hw/input/adb-kbd.c
@@ -355,7 +355,7 @@ static void adb_kbd_reset(DeviceState *dev)
s->count = 0;
}
-static QemuInputHandler adb_keyboard_handler = {
+static const QemuInputHandler adb_keyboard_handler = {
.name = "QEMU ADB Keyboard",
.mask = INPUT_EVENT_MASK_KEY,
.event = adb_keyboard_event,