mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
hw/input/pckbd: Open-code i8042_setup_a20_line() wrapper
Since the named GPIO lines are a "public" interface to the device, we can directly call qdev_connect_gpio_out_named(), making it consistent with how the other A20 input source (port92) is wired. Suggested-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Yanan Wang <wangyanan55@huawei.com> Message-Id: <20211218130437.1516929-6-f4bug@amsat.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
parent
760b4dcddd
commit
40f27a785f
3 changed files with 2 additions and 7 deletions
|
@ -777,11 +777,6 @@ void i8042_isa_mouse_fake_event(ISAKBDState *isa)
|
|||
ps2_mouse_fake_event(&s->ps2mouse);
|
||||
}
|
||||
|
||||
void i8042_setup_a20_line(ISADevice *dev, qemu_irq a20_out)
|
||||
{
|
||||
qdev_connect_gpio_out_named(DEVICE(dev), I8042_A20_LINE, 0, a20_out);
|
||||
}
|
||||
|
||||
static const VMStateDescription vmstate_kbd_isa = {
|
||||
.name = "pckbd",
|
||||
.version_id = 3,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue