Input: ibmasm - convert to dynamic input_dev allocation

Update the ibmasm driver to use the dynamic allocation of input_dev
structs to work with the sysfs subsystem.

Vojtech: Fixed some problems/bugs in the patch.
Dmitry: Fixed some more.

Signed-off-by: Vernon Mauery <vernux@us.ibm.com>
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
Vernon Mauery
2006-01-07 11:35:05 -05:00
committed by Dmitry Torokhov
parent 6020bafc9e
commit 736ce43295
2 changed files with 48 additions and 34 deletions

View File

@@ -141,8 +141,8 @@ struct reverse_heartbeat {
};
struct ibmasm_remote {
struct input_dev keybd_dev;
struct input_dev mouse_dev;
struct input_dev *keybd_dev;
struct input_dev *mouse_dev;
};
struct service_processor {
@@ -157,7 +157,7 @@ struct service_processor {
char dirname[IBMASM_NAME_SIZE];
char devname[IBMASM_NAME_SIZE];
unsigned int number;
struct ibmasm_remote *remote;
struct ibmasm_remote remote;
int serial_line;
struct device *dev;
};