[patch] Fixes/cleanups after lists.h conversion [13/23]

From: Vojtech Pavlik (vojtech@suse.cz)
Date: Tue Oct 08 2002 - 08:50:45 EST


You can import this changeset into BK by piping this whole message to:
'| bk receive [path to repository]' or apply the patch as usual.
'bk pull bk://linux-input.bkbits.net/linux-input' should work as well.

===================================================================

ChangeSet@1.573.1.45, 2002-09-26 22:41:27+02:00, vojtech@suse.cz
  Fixes/cleanups after converting drivers to list.h lists.

 input.c | 4 ++--
 keyboard/atkbd.c | 3 ++-
 mousedev.c | 22 ++++++++++------------
 3 files changed, 14 insertions(+), 15 deletions(-)

===================================================================

diff -Nru a/drivers/input/input.c b/drivers/input/input.c
--- a/drivers/input/input.c Tue Oct 8 15:26:14 2002
+++ b/drivers/input/input.c Tue Oct 8 15:26:14 2002
@@ -411,7 +411,7 @@
         dev->rep[REP_PERIOD] = HZ/33;
 
         INIT_LIST_HEAD(&dev->h_list);
- list_add_tail(&dev->node,&input_dev_list);
+ list_add_tail(&dev->node, &input_dev_list);
 
         list_for_each_entry(handler, &input_handler_list, node)
                 if ((id = input_match_device(handler->id_table, dev)))
@@ -471,7 +471,7 @@
         if (handler->fops != NULL)
                 input_table[handler->minor >> 5] = handler;
 
- list_add_tail(&handler->node,&input_handler_list);
+ list_add_tail(&handler->node, &input_handler_list);
         
         list_for_each_entry(dev, &input_dev_list, node)
                 if ((id = input_match_device(handler->id_table, dev)))
diff -Nru a/drivers/input/keyboard/atkbd.c b/drivers/input/keyboard/atkbd.c
--- a/drivers/input/keyboard/atkbd.c Tue Oct 8 15:26:14 2002
+++ b/drivers/input/keyboard/atkbd.c Tue Oct 8 15:26:14 2002
@@ -332,7 +332,8 @@
  * Try to set the set we want.
  */
 
- if (atkbd_command(atkbd, &atkbd_set, ATKBD_CMD_SSCANSET))
+ param[0] = atkbd_set;
+ if (atkbd_command(atkbd, param, ATKBD_CMD_SSCANSET))
                 return 2;
 
 /*
diff -Nru a/drivers/input/mousedev.c b/drivers/input/mousedev.c
--- a/drivers/input/mousedev.c Tue Oct 8 15:26:14 2002
+++ b/drivers/input/mousedev.c Tue Oct 8 15:26:14 2002
@@ -215,6 +215,8 @@
 static int mousedev_open(struct inode * inode, struct file * file)
 {
         struct mousedev_list *list;
+ struct input_handle *handle;
+ struct mousedev *mousedev;
         int i;
 
 #ifdef CONFIG_INPUT_MOUSEDEV_PSAUX
@@ -237,19 +239,14 @@
 
         if (!list->mousedev->open++) {
                 if (list->mousedev->minor == MOUSEDEV_MIX) {
- struct list_head * node;
- list_for_each(node,&mousedev_handler.h_list) {
- struct input_handle *handle = to_handle_h(node);
- struct mousedev *mousedev = handle->private;
- if (!mousedev->open)
- if (mousedev->exist)
- input_open_device(handle);
+ list_for_each_entry(handle, &mousedev_handler.h_list, h_node) {
+ mousedev = handle->private;
+ if (!mousedev->open && mousedev->exist)
+ input_open_device(handle);
                         }
- } else {
- if (!mousedev_mix.open)
- if (list->mousedev->exist)
- input_open_device(&list->mousedev->handle);
- }
+ } else
+ if (!mousedev_mix.open && list->mousedev->exist)
+ input_open_device(&list->mousedev->handle);
         }
 
         return 0;
@@ -496,6 +493,7 @@
         input_register_handler(&mousedev_handler);
 
         memset(&mousedev_mix, 0, sizeof(struct mousedev));
+ INIT_LIST_HEAD(&mousedev_mix.list);
         init_waitqueue_head(&mousedev_mix.wait);
         mousedev_table[MOUSEDEV_MIX] = &mousedev_mix;
         mousedev_mix.exist = 1;

===================================================================

This BitKeeper patch contains the following changesets:
1.573.1.45
## Wrapped with gzip_uu ##

begin 664 bkpatch18125
M'XL(`/;<HCT``[56:7/;-A#]3/Z*[61&E1*+PL5+&7GB2$ZCR5&/[7SJ=#@0
M`9FL)5)#0CY2]K\'!'74\A6[-:41!&"Q^[!X;\%7\*V41=^ZR/]2,D[L5_`Q
M+U7?*I>E=.+ONG^<Y[K?2_*Y[*VL>I/S7IHMELK6\T=<Q0E<R*+L6]BAFQ%U
MO9!]Z_CPMV^?#XYM>S"`8<*S,WDB%0P&MLJ+"SX3Y3NNDEF>.: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J[X6I6-B2G]F6AW.J;\F]>1!P6ZFYOG7`24NG4U
MKQNM5H/J#_2GUL<&ME9&3=F;&$UO#XS]'AR<?GH_BH9?1M')R?#@Z\GA::>S
:?6>/$QF?E\OY8!(*%$X\8?\`D1_PQPX,````
`
end
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Oct 15 2002 - 22:00:24 EST