From: Michael S. Tsirkin Date: Fri, 10 Jul 2020 11:17:13 +0000 (-0400) Subject: virtio_input: correct tags for config space fields X-Git-Tag: v5.10.7~1868^2~59 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=924b59a6dfa85dc9eac4c7f2fe1857bba2cb2510;p=platform%2Fkernel%2Flinux-rpi.git virtio_input: correct tags for config space fields Since this is a modern-only device, tag config space fields as having little endian-ness. Signed-off-by: Michael S. Tsirkin Reviewed-by: Gerd Hoffmann Reviewed-by: Gerd Hoffmann Reviewed-by: Cornelia Huck --- diff --git a/include/uapi/linux/virtio_input.h b/include/uapi/linux/virtio_input.h index a7fe5c8..52084b1 100644 --- a/include/uapi/linux/virtio_input.h +++ b/include/uapi/linux/virtio_input.h @@ -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 {