mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 10:20:17 -04:00
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 <bryan.odonoghue@linaro.org> Reported-by: Greg Kroah-Hartman <gregkh@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
3ee2266c72
commit
cdb5781d9f
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user