linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 13/31] input: Auto-load mousedev module when /dev/input/mice opened.
       [not found] <cover.1236702228.git.scott@canonical.com>
@ 2009-03-02 18:16 ` Scott James Remnant
  2009-03-03 15:32 ` [PATCH 12/31] input: Auto-load mousedev module when psaux device opened Scott James Remnant
  1 sibling, 0 replies; 3+ messages in thread
From: Scott James Remnant @ 2009-03-02 18:16 UTC (permalink / raw)
  To: linux-kernel; +Cc: dmitry.torokhov, linux-input

The mousedev module is missing the char-major-13-31 alias that would
cause it to be auto-loaded when the /dev/input/mice device is opened.
This patch adds the alias.

Signed-off-by: Scott James Remnant <scott@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
---
 drivers/input/mousedev.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/input/mousedev.c b/drivers/input/mousedev.c
index dfde8ee..a290e90 100644
--- a/drivers/input/mousedev.c
+++ b/drivers/input/mousedev.c
@@ -29,6 +29,7 @@
 MODULE_AUTHOR("Vojtech Pavlik <vojtech@ucw.cz>");
 MODULE_DESCRIPTION("Mouse (ExplorerPS/2) device interfaces");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS_CHARDEV(INPUT_MAJOR, MOUSEDEV_MIX);
 
 #ifndef CONFIG_INPUT_MOUSEDEV_SCREEN_X
 #define CONFIG_INPUT_MOUSEDEV_SCREEN_X	1024
-- 
1.6.0.5


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 12/31] input: Auto-load mousedev module when psaux device opened.
       [not found] <cover.1236702228.git.scott@canonical.com>
  2009-03-02 18:16 ` [PATCH 13/31] input: Auto-load mousedev module when /dev/input/mice opened Scott James Remnant
@ 2009-03-03 15:32 ` Scott James Remnant
  2009-03-21  5:46   ` Dmitry Torokhov
  1 sibling, 1 reply; 3+ messages in thread
From: Scott James Remnant @ 2009-03-03 15:32 UTC (permalink / raw)
  To: linux-kernel; +Cc: dmitry.torokhov, linux-input

The mousedev module is missing the char-major-10-1 alias that would cause
it to be auto-loaded when the /dev/psaux device is opened.  This patch
adds the alias.

Signed-off-by: Scott James Remnant <scott@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
---
 drivers/input/mousedev.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/input/mousedev.c b/drivers/input/mousedev.c
index ef99a7e..dfde8ee 100644
--- a/drivers/input/mousedev.c
+++ b/drivers/input/mousedev.c
@@ -1065,6 +1065,8 @@ static struct miscdevice psaux_mouse = {
 	PSMOUSE_MINOR, "psaux", &mousedev_fops
 };
 static int psaux_registered;
+
+MODULE_ALIAS_MISCDEV(PSMOUSE_MINOR);
 #endif
 
 static int __init mousedev_init(void)
-- 
1.6.0.5


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 12/31] input: Auto-load mousedev module when psaux device opened.
  2009-03-03 15:32 ` [PATCH 12/31] input: Auto-load mousedev module when psaux device opened Scott James Remnant
@ 2009-03-21  5:46   ` Dmitry Torokhov
  0 siblings, 0 replies; 3+ messages in thread
From: Dmitry Torokhov @ 2009-03-21  5:46 UTC (permalink / raw)
  To: Scott James Remnant; +Cc: linux-kernel, linux-input

Hi Scott,

On Tuesday 03 March 2009 07:32:15 Scott James Remnant wrote:
> The mousedev module is missing the char-major-10-1 alias that would cause
> it to be auto-loaded when the /dev/psaux device is opened.  This patch
> adds the alias.
>

I think we are trying to go in the different direction that what you are
proposing - we should automatically load mousedev and other input handlers
when input device that is compatible with that handler is registered with
input core, not the other way around. This way you won't need static device
node in your /dev, udev will create it for you as needed.

Same goes for your other patch.

-- 
Dmitry

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-03-21  5:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <cover.1236702228.git.scott@canonical.com>
2009-03-02 18:16 ` [PATCH 13/31] input: Auto-load mousedev module when /dev/input/mice opened Scott James Remnant
2009-03-03 15:32 ` [PATCH 12/31] input: Auto-load mousedev module when psaux device opened Scott James Remnant
2009-03-21  5:46   ` Dmitry Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).