]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 13 Nov 2019 23:47:34 +0000 (18:47 -0500)
commit17c64e63fba634f45785866ec16edaf91e1fb5c1
tree868d93e162c6e1fc7666d69d00ac586d6cae75ae
parent6416f6fb872bedc2e29c683784d151aa65ff1cf7
USB: serial: whiteheat: fix line-speed endianness

BugLink: https://bugs.launchpad.net/bugs/1852492
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/usb/serial/whiteheat.c
drivers/usb/serial/whiteheat.h