Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <mst@redhat.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>

+9 -9
+9 -9
include/uapi/linux/virtio_input.h
··· 40 40 }; 41 41 42 42 struct virtio_input_absinfo { 43 - __u32 min; 44 - __u32 max; 45 - __u32 fuzz; 46 - __u32 flat; 47 - __u32 res; 43 + __le32 min; 44 + __le32 max; 45 + __le32 fuzz; 46 + __le32 flat; 47 + __le32 res; 48 48 }; 49 49 50 50 struct virtio_input_devids { 51 - __u16 bustype; 52 - __u16 vendor; 53 - __u16 product; 54 - __u16 version; 51 + __le16 bustype; 52 + __le16 vendor; 53 + __le16 product; 54 + __le16 version; 55 55 }; 56 56 57 57 struct virtio_input_config {