USB: serial: whiteheat: fix line-speed endianness
authorJohan Hovold <johan@kernel.org>
Tue, 29 Oct 2019 10:23:54 +0000 (11:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Nov 2019 11:18:20 +0000 (12:18 +0100)
commitf936fa2c1f8f00a21cfd84363073f02da829454f
treeab3b5a7d5cfdfb42dcd285406cf5ef73821f95c8
parent1c06f5d2901f91a7d63f8df478ed6a793bd785e3
USB: serial: whiteheat: fix line-speed endianness

commit 84968291d7924261c6a0624b9a72f952398e258b upstream.

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>
drivers/usb/serial/whiteheat.c
drivers/usb/serial/whiteheat.h