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)
commit07125072b0a08a13331b46990ea48997fa0c64b4
treeff112a2392265c25e91f21c84045d90b00e6f9c1
parentf8edbd5186548e670bfb583cd2ad90f3e203a010
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