mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 12:10:23 -04:00
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.com Signed-off-by: Stephane Grosjean <s.grosjean@peak-system.com> [mkl: mark data pointer as const, too; update commit message] Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
committed by
Marc Kleine-Budde
parent
9e7c9b8eb7
commit
92505df464
@@ -57,7 +57,7 @@ MODULE_DEVICE_TABLE(usb, peak_usb_table);
|
||||
* dump memory
|
||||
*/
|
||||
#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",
|
||||
PCAN_USB_DRIVER_NAME, prompt ? prompt : "memory", l);
|
||||
|
||||
@@ -132,7 +132,7 @@ struct peak_usb_device {
|
||||
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 */
|
||||
void peak_usb_init_time_ref(struct peak_time_ref *time_ref,
|
||||
|
||||
Reference in New Issue
Block a user