mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06: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
5 changed files with 8 additions and 8 deletions
|
@ -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(),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue