From a34db3dd01df8d191c9aed0fa0d834d182175427 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Fri, 6 Dec 2002 20:27:19 +0000 Subject: [PATCH] made comedi_error take a const pointer --- comedi/comedi_fops.c | 2 +- include/linux/comedidev.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/comedi/comedi_fops.c b/comedi/comedi_fops.c index f6a45647..d1baac2f 100644 --- a/comedi/comedi_fops.c +++ b/comedi/comedi_fops.c @@ -1817,7 +1817,7 @@ static void __exit comedi_cleanup(void) module_init(comedi_init); module_exit(comedi_cleanup); -void comedi_error(comedi_device *dev,const char *s) +void comedi_error(const comedi_device *dev,const char *s) { rt_printk("comedi%d: %s: %s\n",dev->minor,dev->driver->driver_name,s); } diff --git a/include/linux/comedidev.h b/include/linux/comedidev.h index 68b371db..e0e45289 100644 --- a/include/linux/comedidev.h +++ b/include/linux/comedidev.h @@ -236,7 +236,7 @@ static const int comedi_debug = 0; */ void comedi_event(comedi_device *dev,comedi_subdevice *s,unsigned int mask); -void comedi_error(comedi_device *dev,const char *s); +void comedi_error(const comedi_device *dev,const char *s); comedi_device * comedi_get_device_by_minor(kdev_t minor); -- 2.26.2