Commit 56b9f301 authored by Randy Dunlap's avatar Randy Dunlap Committed by Marc Kleine-Budde

can: usb: peak: rename peak_usb dump_mem function

Rename generic-sounding function dump_mem() to pcan_dump_mem()
so that it does not conflict with the dump_mem() function in
arch/sh/include/asm/kdebug.h.

drivers/net/can/usb/peak_usb/pcan_usb_core.c: error: conflicting types for 'dump_mem':  => 56:6
drivers/net/can/usb/peak_usb/pcan_usb_core.h: error: conflicting types for 'dump_mem':  => 134:6
Signed-off-by: default avatarRandy Dunlap <rdunlap@xenotime.net>
Reported-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Cc: Stephane Grosjean <s.grosjean@peak-system.com>
Cc: Wolfgang Grandegger <wg@grandegger.com>
Cc: Marc Kleine-Budde <mkl@pengutronix.de>
[mkl: convert all users of dump_mem(), too]
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 006cd138
...@@ -53,7 +53,7 @@ static struct peak_usb_adapter *peak_usb_adapters_list[] = { ...@@ -53,7 +53,7 @@ static struct peak_usb_adapter *peak_usb_adapters_list[] = {
* dump memory * dump memory
*/ */
#define DUMP_WIDTH 16 #define DUMP_WIDTH 16
void dump_mem(char *prompt, void *p, int l) void pcan_dump_mem(char *prompt, void *p, int l)
{ {
pr_info("%s dumping %s (%d bytes):\n", pr_info("%s dumping %s (%d bytes):\n",
PCAN_USB_DRIVER_NAME, prompt ? prompt : "memory", l); PCAN_USB_DRIVER_NAME, prompt ? prompt : "memory", l);
...@@ -203,7 +203,7 @@ static void peak_usb_read_bulk_callback(struct urb *urb) ...@@ -203,7 +203,7 @@ static void peak_usb_read_bulk_callback(struct urb *urb)
if (dev->state & PCAN_USB_STATE_STARTED) { if (dev->state & PCAN_USB_STATE_STARTED) {
err = dev->adapter->dev_decode_buf(dev, urb); err = dev->adapter->dev_decode_buf(dev, urb);
if (err) if (err)
dump_mem("received usb message", pcan_dump_mem("received usb message",
urb->transfer_buffer, urb->transfer_buffer,
urb->transfer_buffer_length); urb->transfer_buffer_length);
} }
......
...@@ -131,7 +131,7 @@ struct peak_usb_device { ...@@ -131,7 +131,7 @@ struct peak_usb_device {
struct peak_usb_device *next_siblings; struct peak_usb_device *next_siblings;
}; };
void dump_mem(char *prompt, void *p, int l); void pcan_dump_mem(char *prompt, void *p, int l);
/* common timestamp management */ /* common timestamp management */
void peak_usb_init_time_ref(struct peak_time_ref *time_ref, void peak_usb_init_time_ref(struct peak_time_ref *time_ref,
......
...@@ -292,7 +292,7 @@ static int pcan_usb_pro_wait_rsp(struct peak_usb_device *dev, ...@@ -292,7 +292,7 @@ static int pcan_usb_pro_wait_rsp(struct peak_usb_device *dev,
if (!rec_len) { if (!rec_len) {
netdev_err(dev->netdev, netdev_err(dev->netdev,
"got unprocessed record in msg\n"); "got unprocessed record in msg\n");
dump_mem("rcvd rsp msg", pum->u.rec_buffer, pcan_dump_mem("rcvd rsp msg", pum->u.rec_buffer,
actual_length); actual_length);
break; break;
} }
...@@ -756,7 +756,7 @@ static int pcan_usb_pro_decode_buf(struct peak_usb_device *dev, struct urb *urb) ...@@ -756,7 +756,7 @@ static int pcan_usb_pro_decode_buf(struct peak_usb_device *dev, struct urb *urb)
fail: fail:
if (err) if (err)
dump_mem("received msg", pcan_dump_mem("received msg",
urb->transfer_buffer, urb->actual_length); urb->transfer_buffer, urb->actual_length);
return err; return err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment