mirror of
https://github.com/qemu/qemu.git
synced 2026-07-08 17:46:10 +00:00
hw/input/ps2: use qemu_input_handler_set_leds_mask() for LED state
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
@@ -577,7 +577,7 @@ static void ps2_set_ledstate(PS2KbdState *s, int ledstate)
|
||||
{
|
||||
trace_ps2_set_ledstate(s, ledstate);
|
||||
s->ledstate = ledstate;
|
||||
kbd_put_ledstate(ledstate);
|
||||
qemu_input_handler_set_leds_mask(PS2_DEVICE(s)->hs, ledstate);
|
||||
}
|
||||
|
||||
static void ps2_reset_keyboard(PS2KbdState *s)
|
||||
@@ -1108,7 +1108,7 @@ static int ps2_kbd_ledstate_post_load(void *opaque, int version_id)
|
||||
{
|
||||
PS2KbdState *s = opaque;
|
||||
|
||||
kbd_put_ledstate(s->ledstate);
|
||||
qemu_input_handler_set_leds_mask(PS2_DEVICE(s)->hs, s->ledstate);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user