The driver declares data structures with defined endianness as u16. Be more precise.
Signed-off-by: Oliver Neukum <oneu...@suse.com> --- drivers/net/usb/hso.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c index ab18dbe169f3..7379df01cd98 100644 --- a/drivers/net/usb/hso.c +++ b/drivers/net/usb/hso.c @@ -188,10 +188,10 @@ enum rx_ctrl_state{ struct hso_serial_state_notification { u8 bmRequestType; u8 bNotification; - u16 wValue; - u16 wIndex; - u16 wLength; - u16 UART_state_bitmap; + __le16 wValue; + __le16 wIndex; + __le16 wLength; + __le16 UART_state_bitmap; } __packed; struct hso_tiocmget { @@ -201,7 +201,7 @@ struct hso_tiocmget { struct usb_endpoint_descriptor *endp; struct urb *urb; struct hso_serial_state_notification serial_state_notification; - u16 prev_UART_state_bitmap; + __le16 prev_UART_state_bitmap; struct uart_icount icount; }; -- 2.16.4