Skip to content

Commit 92505df

Browse files
Stephane Grosjeanmarckleinebudde
authored andcommitted
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/[email protected] Signed-off-by: Stephane Grosjean <[email protected]> [mkl: mark data pointer as const, too; update commit message] Signed-off-by: Marc Kleine-Budde <[email protected]>
1 parent 9e7c9b8 commit 92505df

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/net/can/usb/peak_usb/pcan_usb_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ MODULE_DEVICE_TABLE(usb, peak_usb_table);
5757
* dump memory
5858
*/
5959
#define DUMP_WIDTH 16
60-
void pcan_dump_mem(char *prompt, void *p, int l)
60+
void pcan_dump_mem(const char *prompt, const void *p, int l)
6161
{
6262
pr_info("%s dumping %s (%d bytes):\n",
6363
PCAN_USB_DRIVER_NAME, prompt ? prompt : "memory", l);

drivers/net/can/usb/peak_usb/pcan_usb_core.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ struct peak_usb_device {
132132
struct peak_usb_device *next_siblings;
133133
};
134134

135-
void pcan_dump_mem(char *prompt, void *p, int l);
135+
void pcan_dump_mem(const char *prompt, const void *p, int l);
136136

137137
/* common timestamp management */
138138
void peak_usb_init_time_ref(struct peak_time_ref *time_ref,

0 commit comments

Comments
 (0)