aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2006-01-10 11:30:29 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-10 11:30:29 -0500
commit115b2ce1c3b974e43e45fa6c9e20cd7271a01dff (patch)
tree9a883fb4d84713f142c4e003fead92381c11b6c2 /drivers
parentdd49f96777d5a72d5591ac2112d4ac940391774e (diff)
parent5fc4e6e197c7e377f1c8ebec727d40df983aceed (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
Diffstat (limited to 'drivers')
-rw-r--r--drivers/input/input.c2
-rw-r--r--drivers/input/joystick/grip_mp.c9
-rw-r--r--drivers/input/keyboard/Kconfig10
-rw-r--r--drivers/input/keyboard/Makefile1
-rw-r--r--drivers/input/misc/wistron_btns.c6
-rw-r--r--drivers/input/mouse/Kconfig10
-rw-r--r--drivers/input/mouse/Makefile1
-rw-r--r--drivers/input/mouse/maplemouse.c101
-rw-r--r--drivers/misc/ibmasm/remote.c1
9 files changed, 5 insertions, 136 deletions
diff --git a/drivers/input/input.c b/drivers/input/input.c
index ef5824c8846b..fe33ff334e27 100644
--- a/drivers/input/input.c
+++ b/drivers/input/input.c
@@ -477,8 +477,8 @@ static int __init input_proc_init(void)
477 477
478 entry->owner = THIS_MODULE; 478 entry->owner = THIS_MODULE;
479 input_fileops = *entry->proc_fops; 479 input_fileops = *entry->proc_fops;
480 input_fileops.poll = input_devices_poll;
480 entry->proc_fops = &input_fileops; 481 entry->proc_fops = &input_fileops;
481 entry->proc_fops->poll = input_devices_poll;
482 482
483 entry = create_proc_read_entry("handlers", 0, proc_bus_input_dir, input_handlers_read, NULL); 483 entry = create_proc_read_entry("handlers", 0, proc_bus_input_dir, input_handlers_read, NULL);
484 if (!entry) 484 if (!entry)
diff --git a/drivers/input/joystick/grip_mp.c b/drivers/input/joystick/grip_mp.c
index 51a912222e85..62438944a69a 100644
--- a/drivers/input/joystick/grip_mp.c
+++ b/drivers/input/joystick/grip_mp.c
@@ -53,17 +53,8 @@ struct grip_port {
53struct grip_mp { 53struct grip_mp {
54 struct gameport *gameport; 54 struct gameport *gameport;
55 struct grip_port *port[GRIP_MAX_PORTS]; 55 struct grip_port *port[GRIP_MAX_PORTS];
56// struct input_dev *dev[4];
57// int mode[4];
58// int registered[4];
59 int reads; 56 int reads;
60 int bads; 57 int bads;
61
62 /* individual gamepad states */
63// int buttons[4];
64// int xaxes[4];
65// int yaxes[4];
66// int dirty[4]; /* has the state been updated? */
67}; 58};
68 59
69/* 60/*
diff --git a/drivers/input/keyboard/Kconfig b/drivers/input/keyboard/Kconfig
index 4a917748fd9f..3b0ac3b43c54 100644
--- a/drivers/input/keyboard/Kconfig
+++ b/drivers/input/keyboard/Kconfig
@@ -143,16 +143,6 @@ config KEYBOARD_SPITZ
143 To compile this driver as a module, choose M here: the 143 To compile this driver as a module, choose M here: the
144 module will be called spitzkbd. 144 module will be called spitzkbd.
145 145
146config KEYBOARD_MAPLE
147 tristate "Maple bus keyboard"
148 depends on SH_DREAMCAST && MAPLE
149 help
150 Say Y here if you have a DreamCast console running Linux and have
151 a keyboard attached to its Maple bus.
152
153 To compile this driver as a module, choose M here: the
154 module will be called maple_keyb.
155
156config KEYBOARD_AMIGA 146config KEYBOARD_AMIGA
157 tristate "Amiga keyboard" 147 tristate "Amiga keyboard"
158 depends on AMIGA 148 depends on AMIGA
diff --git a/drivers/input/keyboard/Makefile b/drivers/input/keyboard/Makefile
index 9ce0b87f2fac..6e0afbb22383 100644
--- a/drivers/input/keyboard/Makefile
+++ b/drivers/input/keyboard/Makefile
@@ -5,7 +5,6 @@
5# Each configuration option enables a list of files. 5# Each configuration option enables a list of files.
6 6
7obj-$(CONFIG_KEYBOARD_ATKBD) += atkbd.o 7obj-$(CONFIG_KEYBOARD_ATKBD) += atkbd.o
8obj-$(CONFIG_KEYBOARD_MAPLE) += maple_keyb.o
9obj-$(CONFIG_KEYBOARD_SUNKBD) += sunkbd.o 8obj-$(CONFIG_KEYBOARD_SUNKBD) += sunkbd.o
10obj-$(CONFIG_KEYBOARD_LKKBD) += lkkbd.o 9obj-$(CONFIG_KEYBOARD_LKKBD) += lkkbd.o
11obj-$(CONFIG_KEYBOARD_XTKBD) += xtkbd.o 10obj-$(CONFIG_KEYBOARD_XTKBD) += xtkbd.o
diff --git a/drivers/input/misc/wistron_btns.c b/drivers/input/misc/wistron_btns.c
index a05b8557842f..4b415d9b0123 100644
--- a/drivers/input/misc/wistron_btns.c
+++ b/drivers/input/misc/wistron_btns.c
@@ -92,11 +92,11 @@ static void call_bios(struct regs *regs)
92 preempt_enable(); 92 preempt_enable();
93} 93}
94 94
95static size_t __init locate_wistron_bios(void __iomem *base) 95static ssize_t __init locate_wistron_bios(void __iomem *base)
96{ 96{
97 static const unsigned char __initdata signature[] = 97 static const unsigned char __initdata signature[] =
98 { 0x42, 0x21, 0x55, 0x30 }; 98 { 0x42, 0x21, 0x55, 0x30 };
99 size_t offset; 99 ssize_t offset;
100 100
101 for (offset = 0; offset < 0x10000; offset += 0x10) { 101 for (offset = 0; offset < 0x10000; offset += 0x10) {
102 if (check_signature(base + offset, signature, 102 if (check_signature(base + offset, signature,
@@ -109,7 +109,7 @@ static size_t __init locate_wistron_bios(void __iomem *base)
109static int __init map_bios(void) 109static int __init map_bios(void)
110{ 110{
111 void __iomem *base; 111 void __iomem *base;
112 size_t offset; 112 ssize_t offset;
113 u32 entry_point; 113 u32 entry_point;
114 114
115 base = ioremap(0xF0000, 0x10000); /* Can't fail */ 115 base = ioremap(0xF0000, 0x10000); /* Can't fail */
diff --git a/drivers/input/mouse/Kconfig b/drivers/input/mouse/Kconfig
index 574b18a523af..f15ccf781688 100644
--- a/drivers/input/mouse/Kconfig
+++ b/drivers/input/mouse/Kconfig
@@ -86,16 +86,6 @@ config MOUSE_PC110PAD
86 To compile this driver as a module, choose M here: the 86 To compile this driver as a module, choose M here: the
87 module will be called pc110pad. 87 module will be called pc110pad.
88 88
89config MOUSE_MAPLE
90 tristate "Maple bus mouse"
91 depends on SH_DREAMCAST && MAPLE
92 help
93 Say Y if you have a DreamCast console and a mouse attached to
94 its Maple bus.
95
96 To compile this driver as a module, choose M here: the
97 module will be called maplemouse.
98
99config MOUSE_AMIGA 89config MOUSE_AMIGA
100 tristate "Amiga mouse" 90 tristate "Amiga mouse"
101 depends on AMIGA 91 depends on AMIGA
diff --git a/drivers/input/mouse/Makefile b/drivers/input/mouse/Makefile
index 82b330bbf068..21a1de61a79b 100644
--- a/drivers/input/mouse/Makefile
+++ b/drivers/input/mouse/Makefile
@@ -8,7 +8,6 @@ obj-$(CONFIG_MOUSE_AMIGA) += amimouse.o
8obj-$(CONFIG_MOUSE_RISCPC) += rpcmouse.o 8obj-$(CONFIG_MOUSE_RISCPC) += rpcmouse.o
9obj-$(CONFIG_MOUSE_INPORT) += inport.o 9obj-$(CONFIG_MOUSE_INPORT) += inport.o
10obj-$(CONFIG_MOUSE_LOGIBM) += logibm.o 10obj-$(CONFIG_MOUSE_LOGIBM) += logibm.o
11obj-$(CONFIG_MOUSE_MAPLE) += maplemouse.o
12obj-$(CONFIG_MOUSE_PC110PAD) += pc110pad.o 11obj-$(CONFIG_MOUSE_PC110PAD) += pc110pad.o
13obj-$(CONFIG_MOUSE_PS2) += psmouse.o 12obj-$(CONFIG_MOUSE_PS2) += psmouse.o
14obj-$(CONFIG_MOUSE_SERIAL) += sermouse.o 13obj-$(CONFIG_MOUSE_SERIAL) += sermouse.o
diff --git a/drivers/input/mouse/maplemouse.c b/drivers/input/mouse/maplemouse.c
deleted file mode 100644
index b5b34fe4fee8..000000000000
--- a/drivers/input/mouse/maplemouse.c
+++ /dev/null
@@ -1,101 +0,0 @@
1/*
2 * $Id: maplemouse.c,v 1.2 2004/03/22 01:18:15 lethal Exp $
3 * SEGA Dreamcast mouse driver
4 * Based on drivers/usb/usbmouse.c
5 */
6
7#include <linux/kernel.h>
8#include <linux/slab.h>
9#include <linux/input.h>
10#include <linux/module.h>
11#include <linux/init.h>
12#include <linux/timer.h>
13#include <linux/maple.h>
14
15MODULE_AUTHOR("YAEGASHI Takeshi <t@keshi.org>");
16MODULE_DESCRIPTION("SEGA Dreamcast mouse driver");
17
18static void dc_mouse_callback(struct mapleq *mq)
19{
20 int buttons, relx, rely, relz;
21 struct maple_device *mapledev = mq->dev;
22 struct input_dev *dev = mapledev->private_data;
23 unsigned char *res = mq->recvbuf;
24
25 buttons = ~res[8];
26 relx = *(unsigned short *)(res + 12) - 512;
27 rely = *(unsigned short *)(res + 14) - 512;
28 relz = *(unsigned short *)(res + 16) - 512;
29
30 input_report_key(dev, BTN_LEFT, buttons & 4);
31 input_report_key(dev, BTN_MIDDLE, buttons & 9);
32 input_report_key(dev, BTN_RIGHT, buttons & 2);
33 input_report_rel(dev, REL_X, relx);
34 input_report_rel(dev, REL_Y, rely);
35 input_report_rel(dev, REL_WHEEL, relz);
36 input_sync(dev);
37}
38
39static int dc_mouse_connect(struct maple_device *dev)
40{
41 unsigned long data = be32_to_cpu(dev->devinfo.function_data[0]);
42 struct input_dev *input_dev;
43
44 dev->private_data = input_dev = input_allocate_device();
45 if (!input_dev)
46 return -ENOMEM;
47
48 dev->private_data = input_dev;
49
50 input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_REL);
51 input_dev->keybit[LONG(BTN_MOUSE)] = BIT(BTN_LEFT) | BIT(BTN_RIGHT) | BIT(BTN_MIDDLE);
52 input_dev->relbit[0] = BIT(REL_X) | BIT(REL_Y) | BIT(REL_WHEEL);
53
54 input_dev->name = dev->product_name;
55 input_dev->id.bustype = BUS_MAPLE;
56
57 input_register_device(input_dev);
58
59 maple_getcond_callback(dev, dc_mouse_callback, 1, MAPLE_FUNC_MOUSE);
60
61 return 0;
62}
63
64
65static void dc_mouse_disconnect(struct maple_device *dev)
66{
67 struct input_dev *input_dev = dev->private_data;
68
69 input_unregister_device(input_dev);
70}
71
72
73static struct maple_driver dc_mouse_driver = {
74 .function = MAPLE_FUNC_MOUSE,
75 .name = "Dreamcast mouse",
76 .connect = dc_mouse_connect,
77 .disconnect = dc_mouse_disconnect,
78};
79
80
81static int __init dc_mouse_init(void)
82{
83 maple_register_driver(&dc_mouse_driver);
84 return 0;
85}
86
87
88static void __exit dc_mouse_exit(void)
89{
90 maple_unregister_driver(&dc_mouse_driver);
91}
92
93
94module_init(dc_mouse_init);
95module_exit(dc_mouse_exit);
96
97/*
98 * Local variables:
99 * c-basic-offset: 8
100 * End:
101 */
diff --git a/drivers/misc/ibmasm/remote.c b/drivers/misc/ibmasm/remote.c
index 1abd0c58ae27..0f9e3aa34d07 100644
--- a/drivers/misc/ibmasm/remote.c
+++ b/drivers/misc/ibmasm/remote.c
@@ -270,6 +270,7 @@ int ibmasm_init_remote_input_dev(struct service_processor *sp)
270 270
271 err_unregister_mouse_dev: 271 err_unregister_mouse_dev:
272 input_unregister_device(mouse_dev); 272 input_unregister_device(mouse_dev);
273 mouse_dev = NULL; /* so we don't try to free it again below */
273 err_free_devices: 274 err_free_devices:
274 input_free_device(mouse_dev); 275 input_free_device(mouse_dev);
275 input_free_device(keybd_dev); 276 input_free_device(keybd_dev);