greybus: uart: Fix sparse warning
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Thu, 18 Jun 2015 15:41:58 +0000 (16:41 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 19 Jun 2015 23:35:44 +0000 (16:35 -0700)
commitcdb5781d9fd5f9728a799a26590d2da5794fb1b0
tree2ae78f362531fb24de5aa3df14edb22c12d61640
parent3ee2266c720520dd2bcf90974f184a22d6e53d06
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>
drivers/staging/greybus/greybus_protocols.h