OSDN Git Service

virtio_input: correct tags for config space fields
authorMichael S. Tsirkin <mst@redhat.com>
Fri, 10 Jul 2020 11:17:13 +0000 (07:17 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 5 Aug 2020 15:08:40 +0000 (11:08 -0400)
Since this is a modern-only device,
tag config space fields as having little endian-ness.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
include/uapi/linux/virtio_input.h

index a7fe5c8..52084b1 100644 (file)
@@ -40,18 +40,18 @@ enum virtio_input_config_select {
 };
 
 struct virtio_input_absinfo {
-       __u32 min;
-       __u32 max;
-       __u32 fuzz;
-       __u32 flat;
-       __u32 res;
+       __le32 min;
+       __le32 max;
+       __le32 fuzz;
+       __le32 flat;
+       __le32 res;
 };
 
 struct virtio_input_devids {
-       __u16 bustype;
-       __u16 vendor;
-       __u16 product;
-       __u16 version;
+       __le16 bustype;
+       __le16 vendor;
+       __le16 product;
+       __le16 version;
 };
 
 struct virtio_input_config {