OSDN Git Service

hw/input/stellaris_input: Convert to qdev
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 30 Oct 2023 11:48:01 +0000 (11:48 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 2 Nov 2023 12:52:06 +0000 (12:52 +0000)
commita75f336b97a643fc536ba847042f840890e9b378
tree8a0718fe4c5c7326dd503d7b69462d447fcd672e
parent5f8d505e3a60b957530c7ad9b1214cc440d8b951
hw/input/stellaris_input: Convert to qdev

Convert the hw/input/stellaris_input device to qdev.

The interface uses an array property for the board to specify the
keycodes to use, so the s->keycodes memory is now allocated by the
array-property machinery.

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-6-peter.maydell@linaro.org
hw/arm/stellaris.c
hw/input/stellaris_gamepad.c
include/hw/input/stellaris_gamepad.h