Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 1 Feb 2002 02:15:08 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 1 Feb 2002 02:14:58 -0500 Received: from mail.pha.ha-vel.cz ([195.39.72.3]:40461 "HELO mail.pha.ha-vel.cz") by vger.kernel.org with SMTP id ; Fri, 1 Feb 2002 02:14:44 -0500 Date: Fri, 1 Feb 2002 08:14:42 +0100 From: Vojtech Pavlik To: Geert Uytterhoeven Cc: James Simmons , Vojtech Pavlik , Linux/m68k , Linux Kernel Mailing List Subject: Re: [PATCH] amiga input api drivers Message-ID: <20020201081442.G15571@suse.cz> In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from geert@linux-m68k.org on Thu, Jan 31, 2002 at 09:54:51PM +0100 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 31, 2002 at 09:54:51PM +0100, Geert Uytterhoeven wrote: > On Thu, 31 Jan 2002, James Simmons wrote: > > The amiga mouse and amiga joystick have been already ported over to the > > input api. Now for the keyboard. This patch is the input api amiga > > keyboard. I wanted people to try it out before I send it off to be > > included in the DJ tree. Have fun!!! > > > diff -urN -X /home/jsimmons/dontdiff linux-2.5.2-dj7/drivers/input/keyboard/amikbd.c linux/drivers/input/keyboard/amikbd.c > > --- linux-2.5.2-dj7/drivers/input/keyboard/amikbd.c Wed Dec 31 16:00:00 1969 > > +++ linux/drivers/input/keyboard/amikbd.c Thu Jan 31 07:44:05 2002 > > > +static char *amikbd_messages[] = { > > + KERN_ALERT "amikbd: Ctrl-Amiga-Amiga reset warning!!\n", > > + KERN_WARNING "amikbd: keyboard lost sync\n", > > + KERN_WARNING "amikbd: keyboard buffer overflow\n", > > + KERN_WARNING "amikbd: keyboard controller failure\n", > > + KERN_ERR "amikbd: keyboard selftest failure\n", > > + KERN_INFO "amikbd: initiate power-up key stream\n", > > + KERN_INFO "amikbd: terminate power-up key stream\n", > > + KERN_WARNING "amikbd: keyboard interrupt\n" > > +}; > > > + if (scancode < 0x78) { /* scancodes < 0x78 are keys */ > > [...] > > > + } > > + > > + printk(amikbd_messages[scancode]); /* scancodes >= 0x78 are error codes */ > > Oops, amikbd_messages[scancode-0x78]? Thanks. And thanks to James for fixing this in the CVS as well. Does it work otherwise? -- Vojtech Pavlik SuSE Labs - 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/