mirror of
https://github.com/qemu/qemu.git
synced 2025-08-19 03:11:01 +00:00
hw/input: Constify all Property
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
aaa1f1a524
commit
9eb5c79907
@ -735,7 +735,7 @@ static void i8042_mmio_init(Object *obj)
|
||||
"ps2-mouse-input-irq", 1);
|
||||
}
|
||||
|
||||
static Property i8042_mmio_properties[] = {
|
||||
static const Property i8042_mmio_properties[] = {
|
||||
DEFINE_PROP_UINT64("mask", MMIOKBDState, kbd.mask, UINT64_MAX),
|
||||
DEFINE_PROP_UINT32("size", MMIOKBDState, size, -1),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
@ -933,7 +933,7 @@ static void i8042_build_aml(AcpiDevAmlIf *adev, Aml *scope)
|
||||
aml_append(scope, mou);
|
||||
}
|
||||
|
||||
static Property i8042_properties[] = {
|
||||
static const Property i8042_properties[] = {
|
||||
DEFINE_PROP_BOOL("extended-state", ISAKBDState, kbd.extended_state, true),
|
||||
DEFINE_PROP_BOOL("kbd-throttle", ISAKBDState, kbd_throttle, false),
|
||||
DEFINE_PROP_UINT8("kbd-irq", ISAKBDState, kbd_irq, 1),
|
||||
|
@ -77,7 +77,7 @@ 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(),
|
||||
|
@ -237,7 +237,7 @@ static void virtio_input_hid_handle_status(VirtIOInput *vinput,
|
||||
}
|
||||
}
|
||||
|
||||
static Property virtio_input_hid_properties[] = {
|
||||
static const Property virtio_input_hid_properties[] = {
|
||||
DEFINE_PROP_STRING("display", VirtIOInputHID, display),
|
||||
DEFINE_PROP_UINT32("head", VirtIOInputHID, head, 0),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
@ -380,7 +380,7 @@ static struct virtio_input_config virtio_mouse_config_v2[] = {
|
||||
{ /* end of list */ },
|
||||
};
|
||||
|
||||
static Property virtio_mouse_properties[] = {
|
||||
static const Property virtio_mouse_properties[] = {
|
||||
DEFINE_PROP_BOOL("wheel-axis", VirtIOInputHID, wheel_axis, true),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
@ -505,7 +505,7 @@ static struct virtio_input_config virtio_tablet_config_v2[] = {
|
||||
{ /* end of list */ },
|
||||
};
|
||||
|
||||
static Property virtio_tablet_properties[] = {
|
||||
static const Property virtio_tablet_properties[] = {
|
||||
DEFINE_PROP_BOOL("wheel-axis", VirtIOInputHID, wheel_axis, true),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
@ -221,7 +221,7 @@ static const VMStateDescription vmstate_virtio_input_host = {
|
||||
.unmigratable = 1,
|
||||
};
|
||||
|
||||
static Property virtio_input_host_properties[] = {
|
||||
static const Property virtio_input_host_properties[] = {
|
||||
DEFINE_PROP_STRING("evdev", VirtIOInputHost, evdev),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
@ -300,7 +300,7 @@ static const VMStateDescription vmstate_virtio_input = {
|
||||
.post_load = virtio_input_post_load,
|
||||
};
|
||||
|
||||
static Property virtio_input_properties[] = {
|
||||
static const Property virtio_input_properties[] = {
|
||||
DEFINE_PROP_STRING("serial", VirtIOInput, serial),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user