mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrey Borzenkov <arvidjaar@mail.ru>
To: Andrew Morton <akpm@osdl.org>, vojtech@suse.cz
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] fix devfs names for joystick (resubmitted)
Date: Fri, 2 Jan 2004 22:25:57 +0300	[thread overview]
Message-ID: <200401022225.57534.arvidjaar@mail.ru> (raw)

[-- Attachment #1: Type: text/plain, Size: 153 bytes --]

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

[-- Attachment #2: 2.6.0-test11-joydev_devfs.patch --]
[-- Type: text/x-diff, Size: 713 bytes --]

--- ../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;
 }

                 reply	other threads:[~2004-01-02 19:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200401022225.57534.arvidjaar@mail.ru \
    --to=arvidjaar@mail.ru \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vojtech@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome