virtio-input: move properties, use virtio_instance_init_common
commit6f2b9a5b24c488d38ace01910c684749ff922e26
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 18 Jun 2015 15:45:47 +0000 (18 17:45 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 23 Jun 2015 08:32:35 +0000 (23 10:32 +0200)
tree0e894aa7404967de69228d90efaa00e322c8c00d
parent0c8ff723bd29e5c8b2ca989f857ae5c37ec49c4e
virtio-input: move properties, use virtio_instance_init_common

Move properties from virtio-*-pci to virtio-*-device.
Also make better use of QOM and attach common properties
to the abstract parent classes (virtio-input-device and
virtio-input-pci-device).

Switch the hid device instance init functions over to use
virtio_instance_init_common, so we get the properties of the
virtio device aliased properly to the virtio pci proxy.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/input/virtio-input.c
hw/virtio/virtio-pci.c
include/hw/virtio/virtio-input.h