]> git.proxmox.com Git - mirror_qemu.git/commit
hw/input/stellaris_gamepad: Remove StellarisGamepadButton struct
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 30 Oct 2023 11:48:00 +0000 (11:48 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 2 Nov 2023 12:52:06 +0000 (12:52 +0000)
commit5f8d505e3a60b957530c7ad9b1214cc440d8b951
tree018413ae713a52f069e99b0312769fd03e80d5d0
parent32400a7e872fe620ab52ec32521e839a71ffb54c
hw/input/stellaris_gamepad: Remove StellarisGamepadButton struct

Currently for each button on the device we have a
StellarisGamepadButton struct which has the irq, keycode and pressed
state for it.  When we convert to qdev, the qdev property and GPIO
APIs are going to require that we have separate arrays for the irqs
and keycodes.  Convert from array-of-structs to three separate arrays
in preparation.

This is a migration compatibility break for the stellaris boards
(lm3s6965evb, lm3s811evb).

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20231030114802.3671871-5-peter.maydell@linaro.org
--
v1=>v2: mention migration compat break in commit message;
  bump version fields in vmstate
hw/input/stellaris_gamepad.c