aboutsummaryrefslogtreecommitdiff
path: root/hw/input/stellaris_gamepad.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/input/stellaris_gamepad.c')
-rw-r--r--hw/input/stellaris_gamepad.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/hw/input/stellaris_gamepad.c b/hw/input/stellaris_gamepad.c
index 17ee42b..fec1161 100644
--- a/hw/input/stellaris_gamepad.c
+++ b/hw/input/stellaris_gamepad.c
@@ -77,13 +77,12 @@ static void stellaris_gamepad_reset_enter(Object *obj, ResetType type)
memset(s->pressed, 0, s->num_buttons * sizeof(uint8_t));
}
-static Property stellaris_gamepad_properties[] = {
+static const Property stellaris_gamepad_properties[] = {
DEFINE_PROP_ARRAY("keycodes", StellarisGamepad, num_buttons,
keycodes, qdev_prop_uint32, uint32_t),
- DEFINE_PROP_END_OF_LIST(),
};
-static void stellaris_gamepad_class_init(ObjectClass *klass, void *data)
+static void stellaris_gamepad_class_init(ObjectClass *klass, const void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
ResettableClass *rc = RESETTABLE_CLASS(klass);