summaryrefslogtreecommitdiff
path: root/include/uapi/linux/virtio_gpio.h
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2021-08-31 08:29:25 +0300
committerBartosz Golaszewski <bgolaszewski@baylibre.com>2021-08-31 12:07:05 +0300
commit17395d7742baa4737e9d3b4672cc3d10e5970998 (patch)
treeed4f4a0a90a99bd3a180472f249cb88d374ed901 /include/uapi/linux/virtio_gpio.h
parent37cba6432d88d2d49ca863fb5982231f3a7775d5 (diff)
downloadlinux-17395d7742baa4737e9d3b4672cc3d10e5970998.tar.xz
gpio: virtio: Fix sparse warnings
Fix warnings reported by sparse, related to type mismatch between u16 and __le16. Reported-by: kernel test robot <lkp@intel.com> Fixes: 3a29355a22c0 ("gpio: Add virtio-gpio driver") Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'include/uapi/linux/virtio_gpio.h')
-rw-r--r--include/uapi/linux/virtio_gpio.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/uapi/linux/virtio_gpio.h b/include/uapi/linux/virtio_gpio.h
index 844574acf095..0445f905d8cc 100644
--- a/include/uapi/linux/virtio_gpio.h
+++ b/include/uapi/linux/virtio_gpio.h
@@ -22,16 +22,16 @@
#define VIRTIO_GPIO_DIRECTION_IN 0x02
struct virtio_gpio_config {
- __u16 ngpio;
+ __le16 ngpio;
__u8 padding[2];
- __u32 gpio_names_size;
+ __le32 gpio_names_size;
} __packed;
/* Virtio GPIO Request / Response */
struct virtio_gpio_request {
- __u16 type;
- __u16 gpio;
- __u32 value;
+ __le16 type;
+ __le16 gpio;
+ __le32 value;
};
struct virtio_gpio_response {