Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 8 Oct 2002 09:47:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 8 Oct 2002 09:46:00 -0400 Received: from twilight.ucw.cz ([195.39.74.230]:54164 "EHLO twilight.ucw.cz") by vger.kernel.org with ESMTP id ; Tue, 8 Oct 2002 09:45:15 -0400 Date: Tue, 8 Oct 2002 15:50:45 +0200 From: Vojtech Pavlik To: Vojtech Pavlik Cc: torvalds@transmeta.com, linux-kernel@vger.kernel.org Subject: [patch] Fixes/cleanups after lists.h conversion [13/23] Message-ID: <20021008155045.L18546@ucw.cz> References: <20021008154029.B18546@ucw.cz> <20021008154132.C18546@ucw.cz> <20021008154246.D18546@ucw.cz> <20021008154415.E18546@ucw.cz> <20021008154549.F18546@ucw.cz> <20021008154631.G18546@ucw.cz> <20021008154733.H18546@ucw.cz> <20021008154824.I18546@ucw.cz> <20021008154904.J18546@ucw.cz> <20021008155003.K18546@ucw.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20021008155003.K18546@ucw.cz>; from vojtech@suse.cz on Tue, Oct 08, 2002 at 03:50:03PM +0200 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 5168 Lines: 138 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(`/;E=.+ONG^I/S7IHMELK6\T=S"`8<*S,WDB%0P&MLJ+"SX3Y3NNDEF>.:K@63F7BCMQ M/J\VIA5!B.B/BWV*7*_"'F)^%6.!,6=8"D18X#%[!>S="O;N^I!XV,::3JM+L#$21UOG5D6&6ELI)3%,Z]B?P7"^PC[:I MM;M/?&P;<63O;W:K+M-9>I8H9QE?UIE:/"_`_(+XEQ@<1NQ@1BDF-&!,C3$)O M29+>)TD"7?(BDCP0`LH%C^56CO,Y-Y(SJ?T=NL6E^6H)'=V=Y6=H<<0P`VR/ MF\:J91YQ(2+%TUF[I1G8W<]R(?>@96)$>B2JC3IO]5*_6>K?M52G0,QDL;-\ M-;IV<9LO6^(_E3)/5>`CK+FM0!>[B+E!14**?$,<'/P\<3""+GX9Z@R;.FYJ M-*2:.URE>;8'^C!@GI9E7='3+%5\EGXW4Y!/MP6]*2@/TFN;BV1)+'220S55RW M&T>:9^MU:ZHYB2';'B11S<0._%V[L#:!!M`8=O<7>L]J\6=^_) M6I$O>&L_(LC[;FV&/18PKR)NP,)&EMZ3ZCE^$5&.\NQ7!0M>ZGJ>:=8K:!O@ M42E5![@>A3CA!;07O.`ZDJ[X6I6-B2G]F6AW.J;\F]>1!P6ZFYOG7`24NG4U MKQNM5H/J#_2GUL<&ME9&3=F;&$UO#XS]'ARS :?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/