summaryrefslogtreecommitdiff
path: root/drivers/usb/serial/whiteheat.h
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2019-10-29 13:23:54 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-10-30 12:06:32 +0300
commit84968291d7924261c6a0624b9a72f952398e258b (patch)
treee765dcb1fc412a2f11d334c366fddbd48e2e6812 /drivers/usb/serial/whiteheat.h
parent1251dab9e0a2c4d0d2d48370ba5baa095a5e8774 (diff)
downloadlinux-84968291d7924261c6a0624b9a72f952398e258b.tar.xz
USB: serial: whiteheat: fix line-speed endianness
Add missing endianness conversion when setting the line speed so that this driver might work also on big-endian machines. Also use an unsigned format specifier in the corresponding debug message. Signed-off-by: Johan Hovold <johan@kernel.org> Cc: stable <stable@vger.kernel.org> Link: https://lore.kernel.org/r/20191029102354.2733-3-johan@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/whiteheat.h')
-rw-r--r--drivers/usb/serial/whiteheat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/whiteheat.h b/drivers/usb/serial/whiteheat.h
index 00398149cd8d..269e727a92f9 100644
--- a/drivers/usb/serial/whiteheat.h
+++ b/drivers/usb/serial/whiteheat.h
@@ -87,7 +87,7 @@ struct whiteheat_simple {
struct whiteheat_port_settings {
__u8 port; /* port number (1 to N) */
- __u32 baud; /* any value 7 - 460800, firmware calculates
+ __le32 baud; /* any value 7 - 460800, firmware calculates
best fit; arrives little endian */
__u8 bits; /* 5, 6, 7, or 8 */
__u8 stop; /* 1 or 2, default 1 (2 = 1.5 if bits = 5) */