All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Input: mousedev - fix /dev/input/mice minor number
@ 2012-11-18  9:32 Krzysztof Mazur
  0 siblings, 0 replies; only message in thread
From: Krzysztof Mazur @ 2012-11-18  9:32 UTC (permalink / raw)
  To: dmitry.torokhov
  Cc: jkosina, pavel, linux-input, linux-kernel, Krzysztof Mazur

The mousedev always used relative minor number 31 for MOUSEDEV_MIX
(/dev/input/mice), but alsolute minor number was 63. Commit
7f8d4cad1e4e11a45d02bd6e024cc2812963c38a ("Input: extend the number
of event (and other) devices") changed it to 31 alsolute minor number.

Signed-off-by: Krzysztof Mazur <krzysiek@podlesie.net>
---
Tested on Linux 3.7-rc6 + small patch.

After fixing this I found similar problem:
http://marc.info/?l=linux-kernel&m=135298612202547&w=2

 drivers/input/mousedev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/mousedev.c b/drivers/input/mousedev.c
index 8f02e3d..fc711a8 100644
--- a/drivers/input/mousedev.c
+++ b/drivers/input/mousedev.c
@@ -13,7 +13,7 @@
 
 #define MOUSEDEV_MINOR_BASE	32
 #define MOUSEDEV_MINORS		32
-#define MOUSEDEV_MIX		31
+#define MOUSEDEV_MIX		(MOUSEDEV_MINOR_BASE + 31)
 
 #include <linux/sched.h>
 #include <linux/slab.h>
-- 
1.8.0.283.gc57d856


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-11-18  9:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-18  9:32 [PATCH] Input: mousedev - fix /dev/input/mice minor number Krzysztof Mazur

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.