lkml.org 
[lkml]   [2004]   [Jan]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] fix devfs names for joystick (resubmitted)
Date
I believed it was included; at least judging by changelog. All other input 
devices are under /dev/input; any reason joystick is the exception?

-andrey
--- ../tmp/linux-2.6.0-test11/drivers/input/joydev.c 2003-09-09 23:45:40.000000000 +0400
+++ linux-2.6.0-test11/drivers/input/joydev.c 2003-09-09 21:19:31.000000000 +0400
@@ -143,7 +143,7 @@ static int joydev_fasync(int fd, struct

static void joydev_free(struct joydev *joydev)
{
- devfs_remove("js%d", joydev->minor);
+ devfs_remove("input/js%d", joydev->minor);
joydev_table[joydev->minor] = NULL;
kfree(joydev);
}
@@ -447,7 +447,7 @@ static struct input_handle *joydev_conne
joydev_table[minor] = joydev;

devfs_mk_cdev(MKDEV(INPUT_MAJOR, JOYDEV_MINOR_BASE + minor),
- S_IFCHR|S_IRUGO|S_IWUSR, "js%d", minor);
+ S_IFCHR|S_IRUGO|S_IWUSR, "input/js%d", minor);

return &joydev->handle;
}
\
 
 \ /
  Last update: 2005-03-22 13:59    [W:0.033 / U:0.396 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site