From b065e275a8066c3ec478f326f39c5fc3c9db103c Mon Sep 17 00:00:00 2001 From: Ladi Prosek Date: Wed, 13 Apr 2016 16:43:23 +0200 Subject: virtio-input: support absolute axis config in pass-through VIRTIO_INPUT_CFG_ABS_INFO was not implemented for pass-through input devices. This patch follows the existing design and pre-fetches the config for all absolute axes using EVIOCGABS at realize time. Signed-off-by: Ladi Prosek Message-id: 1460558603-18331-1-git-send-email-lprosek@redhat.com Signed-off-by: Gerd Hoffmann --- hw/input/virtio-input.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'hw/input/virtio-input.c') diff --git a/hw/input/virtio-input.c b/hw/input/virtio-input.c index ac019c7..f59749a 100644 --- a/hw/input/virtio-input.c +++ b/hw/input/virtio-input.c @@ -99,9 +99,9 @@ static void virtio_input_handle_sts(VirtIODevice *vdev, VirtQueue *vq) virtio_notify(vdev, vinput->sts); } -static virtio_input_config *virtio_input_find_config(VirtIOInput *vinput, - uint8_t select, - uint8_t subsel) +virtio_input_config *virtio_input_find_config(VirtIOInput *vinput, + uint8_t select, + uint8_t subsel) { VirtIOInputConfig *cfg; -- cgit v1.1