From: Bryan O'Donoghue Date: Thu, 18 Jun 2015 15:41:58 +0000 (+0100) Subject: greybus: uart: Fix sparse warning X-Git-Tag: v4.9-rc1~119^2~378^2~21^2~1455 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=cdb5781d9fd5f9728a799a26590d2da5794fb1b0;p=linux.git greybus: uart: Fix sparse warning Greg reported sparse picked up the following warning: /home/gregkh/ara/greybus/uart.c:105:34: warning: cast to restricted __le16 This is due to the control variable in gb_uart_serial_state_request which needs to be declared __le16 not __u16. Signed-off-by: Bryan O'Donoghue Reported-by: Greg Kroah-Hartman Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/greybus_protocols.h b/drivers/staging/greybus/greybus_protocols.h index 642f942f1c38..684ad03bc3f6 100644 --- a/drivers/staging/greybus/greybus_protocols.h +++ b/drivers/staging/greybus/greybus_protocols.h @@ -613,7 +613,7 @@ struct gb_uart_set_break_request { #define GB_UART_CTRL_OVERRUN 0x40 struct gb_uart_serial_state_request { - __u16 control; + __le16 control; }; #endif /* __GREYBUS_PROTOCOLS_H */