]> git.baikalelectronics.ru Git - kernel.git/commit
USB: serial: do not use tty class device for debugging
authorJohan Hovold <johan@kernel.org>
Thu, 8 Apr 2021 15:08:59 +0000 (17:08 +0200)
committerJohan Hovold <johan@kernel.org>
Fri, 9 Apr 2021 15:55:21 +0000 (17:55 +0200)
commit193b4d8686b7d9f38c8abcd23726522392a9bdbc
treeff112a2392265c25e91f21c84045d90b00e6f9c1
parente9e301f5006c2cb6ff705c3ff5b26e5b3270401a
USB: serial: do not use tty class device for debugging

Use the port struct device rather than tty class device for debugging.

Note that while USB serial doesn't support serdev yet (due to serdev not
handling hotplugging), serdev ttys do not have a corresponding class
device and would have been logged using a "(NULL device *):" prefix.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/metro-usb.c
drivers/usb/serial/upd78f0730.c
drivers/usb/serial/usb-serial.c