]> git.baikalelectronics.ru Git - kernel.git/commit
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, 30 Oct 2019 09:06:32 +0000 (10:06 +0100)
commitb1b2466746024d9557c7ffa99d1b9a0293671242
treee765dcb1fc412a2f11d334c366fddbd48e2e6812
parent643bf1bff3659cc4f346b69f04335741e9a334c3
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>
drivers/usb/serial/whiteheat.c
drivers/usb/serial/whiteheat.h