diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-18 04:58:57 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-18 04:58:57 -0400 |
| commit | 59d33f2fc2d63796296b1b76143e039d6e7cf532 (patch) | |
| tree | e754135e560ab7478694c942fe65bc4ea325053b /include/linux/usb | |
| parent | 82760526e6d2e1d1e815abaf3eae42b8bb82968c (diff) | |
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>
Diffstat (limited to 'include/linux/usb')
| -rw-r--r-- | include/linux/usb/serial.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/linux/usb/serial.h b/include/linux/usb/serial.h index e71bc5ef234a..b2b6d159b26b 100644 --- a/include/linux/usb/serial.h +++ b/include/linux/usb/serial.h | |||
| @@ -355,14 +355,12 @@ extern struct usb_serial_driver usb_serial_generic_device; | |||
| 355 | extern struct bus_type usb_serial_bus_type; | 355 | extern struct bus_type usb_serial_bus_type; |
| 356 | extern struct tty_driver *usb_serial_tty_driver; | 356 | extern struct tty_driver *usb_serial_tty_driver; |
| 357 | 357 | ||
| 358 | static inline void usb_serial_debug_data(int debug, | 358 | static inline void usb_serial_debug_data(struct device *dev, |
| 359 | struct device *dev, | ||
| 360 | const char *function, int size, | 359 | const char *function, int size, |
| 361 | const unsigned char *data) | 360 | const unsigned char *data) |
| 362 | { | 361 | { |
| 363 | if (debug) | 362 | dev_dbg(dev, "%s - length = %d, data = %*ph\n", |
| 364 | dev_printk(KERN_DEBUG, dev, "%s - length = %d, data = %*ph\n", | 363 | function, size, size, data); |
| 365 | function, size, size, data); | ||
| 366 | } | 364 | } |
| 367 | 365 | ||
| 368 | /* | 366 | /* |
