mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
USB: serial: remove debug parameter from usb_serial_debug_data()
We should use dev_dbg() for usb_serial_debug_data() like all of the rest of the usb-serial drivers use, so remove the debug parameter as it's not needed. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
82760526e6
commit
59d33f2fc2
24 changed files with 61 additions and 89 deletions
|
@ -355,14 +355,12 @@ extern struct usb_serial_driver usb_serial_generic_device;
|
|||
extern struct bus_type usb_serial_bus_type;
|
||||
extern struct tty_driver *usb_serial_tty_driver;
|
||||
|
||||
static inline void usb_serial_debug_data(int debug,
|
||||
struct device *dev,
|
||||
static inline void usb_serial_debug_data(struct device *dev,
|
||||
const char *function, int size,
|
||||
const unsigned char *data)
|
||||
{
|
||||
if (debug)
|
||||
dev_printk(KERN_DEBUG, dev, "%s - length = %d, data = %*ph\n",
|
||||
function, size, size, data);
|
||||
dev_dbg(dev, "%s - length = %d, data = %*ph\n",
|
||||
function, size, size, data);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue