You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
2.4 KiB
73 lines
2.4 KiB
Index: drivers/lirc_dev/lirc_dev.c
|
|
===================================================================
|
|
RCS file: /cvsroot/lirc/lirc/drivers/lirc_dev/lirc_dev.c,v
|
|
retrieving revision 1.44
|
|
diff -u -r1.44 lirc_dev.c
|
|
--- drivers/lirc_dev/lirc_dev.c 8 Aug 2005 06:04:48 -0000 1.44
|
|
+++ drivers/lirc_dev/lirc_dev.c 29 Nov 2005 01:15:17 -0000
|
|
@@ -382,7 +382,11 @@
|
|
S_IFCHR|S_IRUSR|S_IWUSR,
|
|
DEV_LIRC "/%u", ir->p.minor);
|
|
#endif
|
|
- (void) class_device_create(lirc_class, MKDEV(IRCTL_DEV_MAJOR, ir->p.minor),
|
|
+ (void) class_device_create(lirc_class,
|
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,15)
|
|
+ NULL,
|
|
+#endif
|
|
+ MKDEV(IRCTL_DEV_MAJOR, ir->p.minor),
|
|
NULL, "lirc%u", ir->p.minor);
|
|
|
|
if(p->sample_rate || p->get_queue) {
|
|
Index: drivers/lirc_imon/lirc_imon.c
|
|
===================================================================
|
|
RCS file: /cvsroot/lirc/lirc/drivers/lirc_imon/lirc_imon.c,v
|
|
retrieving revision 1.8
|
|
diff -u -r1.8 lirc_imon.c
|
|
--- drivers/lirc_imon/lirc_imon.c 29 Oct 2005 14:18:53 -0000 1.8
|
|
+++ drivers/lirc_imon/lirc_imon.c 29 Nov 2005 01:15:18 -0000
|
|
@@ -72,7 +72,7 @@
|
|
|
|
#define VFD_MINOR_BASE 144 /* Same as LCD */
|
|
#define DEVFS_MODE S_IFCHR | S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH
|
|
-#define DEVFS_NAME "usb/lcd%d"
|
|
+#define DEVFS_NAME "lcd%d"
|
|
|
|
#define BUF_CHUNK_SIZE 4
|
|
#define BUF_SIZE 128
|
|
@@ -216,7 +216,9 @@
|
|
static struct usb_class_driver imon_class = {
|
|
.name = DEVFS_NAME,
|
|
.fops = &vfd_fops,
|
|
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,15)
|
|
.mode = DEVFS_MODE,
|
|
+#endif
|
|
.minor_base = VFD_MINOR_BASE,
|
|
};
|
|
#endif
|
|
Index: drivers/lirc_sasem/lirc_sasem.c
|
|
===================================================================
|
|
RCS file: /cvsroot/lirc/lirc/drivers/lirc_sasem/lirc_sasem.c,v
|
|
retrieving revision 1.11
|
|
diff -u -r1.11 lirc_sasem.c
|
|
--- drivers/lirc_sasem/lirc_sasem.c 29 Oct 2005 14:18:53 -0000 1.11
|
|
+++ drivers/lirc_sasem/lirc_sasem.c 29 Nov 2005 01:15:19 -0000
|
|
@@ -81,7 +81,7 @@
|
|
|
|
#define VFD_MINOR_BASE 144 /* Same as LCD */
|
|
#define DEVFS_MODE S_IFCHR | S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH
|
|
-#define DEVFS_NAME "usb/lcd%d"
|
|
+#define DEVFS_NAME "lcd%d"
|
|
|
|
#define BUF_CHUNK_SIZE 8
|
|
#define BUF_SIZE 128
|
|
@@ -204,7 +204,9 @@
|
|
static struct usb_class_driver sasem_class = {
|
|
.name = DEVFS_NAME,
|
|
.fops = &vfd_fops,
|
|
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,15)
|
|
.mode = DEVFS_MODE,
|
|
+#endif
|
|
.minor_base = VFD_MINOR_BASE,
|
|
};
|
|
#endif
|