Revision: 568
http://svn.sourceforge.net/hackndev/?rev=568&view=rev
Author: marex_z71
Date: 2006-09-17 10:23:00 -0700 (Sun, 17 Sep 2006)
Log Message:
-----------
l4p: minor changes in stowaway kbd driver - removed useless init
sequence detection.
Modified Paths:
--------------
linux4palm/linux/trunk/drivers/input/keyboard/stowaway.c
Modified: linux4palm/linux/trunk/drivers/input/keyboard/stowaway.c
===================================================================
--- linux4palm/linux/trunk/drivers/input/keyboard/stowaway.c 2006-09-17 02:33:51 UTC (rev 567)
+++ linux4palm/linux/trunk/drivers/input/keyboard/stowaway.c 2006-09-17 17:23:00 UTC (rev 568)
@@ -74,19 +74,14 @@
unsigned char data, unsigned int flags, struct pt_regs *regs)
{
struct skbd *skbd = serio_get_drvdata(serio);
- /* invalid scan codes are probably the init sequence, so we ignore them */
- if (skbd->keycode[data & SKBD_KEY]) {
- /* check if this is keypress */
- if (data < 0x80) {
+ /* check if this is keypress */
+ if (data < 0x80) {
input_regs(skbd->dev, regs);
input_report_key(skbd->dev, skbd->keycode[data & SKBD_KEY], 1);
input_sync(skbd->dev);
- } else {
+ } else {
input_report_key(skbd->dev, skbd->keycode[data & SKBD_KEY], 0);
- }
}
- else if (data == 0xe7) /* end of init sequence */
- printk(KERN_INFO "input: %s on %s\n", skbd->dev->name, serio->phys);
return IRQ_HANDLED;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|