Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
a7430963
Commit
a7430963
authored
Apr 28, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
driver core: fix up the input_class logic due to the class changes.
parent
0d120f58
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
5 additions
and
67 deletions
+5
-67
drivers/input/evbug.c
drivers/input/evbug.c
+0
-12
drivers/input/evdev.c
drivers/input/evdev.c
+0
-12
drivers/input/input.c
drivers/input/input.c
+4
-4
drivers/input/joydev.c
drivers/input/joydev.c
+0
-12
drivers/input/mousedev.c
drivers/input/mousedev.c
+0
-11
drivers/input/tsdev.c
drivers/input/tsdev.c
+0
-12
drivers/usb/input/hid-core.c
drivers/usb/input/hid-core.c
+0
-3
include/linux/input.h
include/linux/input.h
+1
-1
No files found.
drivers/input/evbug.c
View file @
a7430963
...
...
@@ -88,19 +88,8 @@ static struct input_handler evbug_handler = {
.
id_table
=
evbug_ids
,
};
static
struct
device_interface
evbug_intf
=
{
.
name
=
"debug"
,
.
devclass
=
&
input_devclass
,
};
int
__init
evbug_init
(
void
)
{
int
retval
;
retval
=
interface_register
(
&
evbug_intf
);
if
(
retval
<
0
)
return
retval
;
input_register_handler
(
&
evbug_handler
);
return
0
;
}
...
...
@@ -108,7 +97,6 @@ int __init evbug_init(void)
void
__exit
evbug_exit
(
void
)
{
input_unregister_handler
(
&
evbug_handler
);
interface_unregister
(
&
evbug_intf
);
}
module_init
(
evbug_init
);
...
...
drivers/input/evdev.c
View file @
a7430963
...
...
@@ -435,19 +435,8 @@ static struct input_handler evdev_handler = {
.
id_table
=
evdev_ids
,
};
static
struct
device_interface
evdev_intf
=
{
.
name
=
"event"
,
.
devclass
=
&
input_devclass
,
};
static
int
__init
evdev_init
(
void
)
{
int
retval
;
retval
=
interface_register
(
&
evdev_intf
);
if
(
retval
<
0
)
return
retval
;
input_register_handler
(
&
evdev_handler
);
return
0
;
}
...
...
@@ -455,7 +444,6 @@ static int __init evdev_init(void)
static
void
__exit
evdev_exit
(
void
)
{
input_unregister_handler
(
&
evdev_handler
);
interface_unregister
(
&
evdev_intf
);
}
module_init
(
evdev_init
);
...
...
drivers/input/input.c
View file @
a7430963
...
...
@@ -38,7 +38,7 @@ EXPORT_SYMBOL(input_close_device);
EXPORT_SYMBOL
(
input_accept_process
);
EXPORT_SYMBOL
(
input_flush_device
);
EXPORT_SYMBOL
(
input_event
);
EXPORT_SYMBOL
(
input_
dev
class
);
EXPORT_SYMBOL
(
input_class
);
#define INPUT_MAJOR 13
#define INPUT_DEVICES 256
...
...
@@ -667,7 +667,7 @@ static int input_handlers_read(char *buf, char **start, off_t pos, int count, in
#endif
struct
device_class
input_dev
class
=
{
struct
class
input_
class
=
{
.
name
=
"input"
,
};
...
...
@@ -675,7 +675,7 @@ static int __init input_init(void)
{
struct
proc_dir_entry
*
entry
;
devclass_register
(
&
input_dev
class
);
class_register
(
&
input_
class
);
#ifdef CONFIG_PROC_FS
proc_bus_input_dir
=
proc_mkdir
(
"input"
,
proc_bus
);
...
...
@@ -705,7 +705,7 @@ static void __exit input_exit(void)
devfs_remove
(
"input"
);
if
(
unregister_chrdev
(
INPUT_MAJOR
,
"input"
))
printk
(
KERN_ERR
"input: can't unregister char major %d"
,
INPUT_MAJOR
);
devclass_unregister
(
&
input_dev
class
);
class_unregister
(
&
input_
class
);
}
subsys_initcall
(
input_init
);
...
...
drivers/input/joydev.c
View file @
a7430963
...
...
@@ -493,19 +493,8 @@ static struct input_handler joydev_handler = {
.
id_table
=
joydev_ids
,
};
static
struct
device_interface
joydev_intf
=
{
.
name
=
"joystick"
,
.
devclass
=
&
input_devclass
,
};
static
int
__init
joydev_init
(
void
)
{
int
retval
;
retval
=
interface_register
(
&
joydev_intf
);
if
(
retval
<
0
)
return
retval
;
input_register_handler
(
&
joydev_handler
);
return
0
;
}
...
...
@@ -513,7 +502,6 @@ static int __init joydev_init(void)
static
void
__exit
joydev_exit
(
void
)
{
input_unregister_handler
(
&
joydev_handler
);
interface_unregister
(
&
joydev_intf
);
}
module_init
(
joydev_init
);
...
...
drivers/input/mousedev.c
View file @
a7430963
...
...
@@ -492,18 +492,8 @@ static struct miscdevice psaux_mouse = {
};
#endif
static
struct
device_interface
mousedev_intf
=
{
.
name
=
"mouse"
,
.
devclass
=
&
input_devclass
,
};
static
int
__init
mousedev_init
(
void
)
{
int
retval
;
if
((
retval
=
interface_register
(
&
mousedev_intf
))
<
0
)
return
retval
;
input_register_handler
(
&
mousedev_handler
);
memset
(
&
mousedev_mix
,
0
,
sizeof
(
struct
mousedev
));
...
...
@@ -532,7 +522,6 @@ static void __exit mousedev_exit(void)
#endif
devfs_remove
(
"input/mice"
);
input_unregister_handler
(
&
mousedev_handler
);
interface_unregister
(
&
mousedev_intf
);
}
module_init
(
mousedev_init
);
...
...
drivers/input/tsdev.c
View file @
a7430963
...
...
@@ -378,19 +378,8 @@ static struct input_handler tsdev_handler = {
.
id_table
=
tsdev_ids
,
};
static
struct
device_interface
tsdev_intf
=
{
.
name
=
"touchscreen"
,
.
devclass
=
&
input_devclass
,
};
static
int
__init
tsdev_init
(
void
)
{
int
retval
;
retval
=
interface_register
(
&
tsdev_intf
);
if
(
retval
<
0
)
return
retval
;
input_register_handler
(
&
tsdev_handler
);
printk
(
KERN_INFO
"ts: Compaq touchscreen protocol output
\n
"
);
return
0
;
...
...
@@ -399,7 +388,6 @@ static int __init tsdev_init(void)
static
void
__exit
tsdev_exit
(
void
)
{
input_unregister_handler
(
&
tsdev_handler
);
interface_unregister
(
&
tsdev_intf
);
}
module_init
(
tsdev_init
);
...
...
drivers/usb/input/hid-core.c
View file @
a7430963
...
...
@@ -1664,9 +1664,6 @@ static struct usb_driver hid_driver = {
.
probe
=
hid_probe
,
.
disconnect
=
hid_disconnect
,
.
id_table
=
hid_usb_ids
,
.
driver
=
{
.
devclass
=
&
input_devclass
,
},
};
static
int
__init
hid_init
(
void
)
...
...
include/linux/input.h
View file @
a7430963
...
...
@@ -908,7 +908,7 @@ void input_event(struct input_dev *dev, unsigned int type, unsigned int code, in
#define input_regs(a,b) do { (a)->regs = (b); } while (0)
#define input_sync(a) do { input_event(a, EV_SYN, SYN_REPORT, 0); (a)->regs = NULL; } while (0)
extern
struct
device_class
input_dev
class
;
extern
struct
class
input_
class
;
#endif
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment