Commit 92505df4 authored by Stephane Grosjean's avatar Stephane Grosjean Committed by Marc Kleine-Budde

can: peak_usb: pcan_dump_mem(): mark input prompt and data pointer as const

Mark the input prompt and data pointer as const.

Link: https://lore.kernel.org/all/20220719120632.26774-1-s.grosjean@peak-system.comSigned-off-by: default avatarStephane Grosjean <s.grosjean@peak-system.com>
[mkl: mark data pointer as const, too; update commit message]
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 9e7c9b8e
...@@ -57,7 +57,7 @@ MODULE_DEVICE_TABLE(usb, peak_usb_table); ...@@ -57,7 +57,7 @@ MODULE_DEVICE_TABLE(usb, peak_usb_table);
* dump memory * dump memory
*/ */
#define DUMP_WIDTH 16 #define DUMP_WIDTH 16
void pcan_dump_mem(char *prompt, void *p, int l) void pcan_dump_mem(const char *prompt, const 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);
......
...@@ -132,7 +132,7 @@ struct peak_usb_device { ...@@ -132,7 +132,7 @@ struct peak_usb_device {
struct peak_usb_device *next_siblings; struct peak_usb_device *next_siblings;
}; };
void pcan_dump_mem(char *prompt, void *p, int l); void pcan_dump_mem(const char *prompt, const 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,
......
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