summaryrefslogtreecommitdiff
path: root/packages/snes232
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2005-06-30 08:19:37 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-06-30 08:19:37 +0000
commitc8e5702127e507e82e6f68a4b8c546803accea9d (patch)
tree00583491f40ecc640f2b28452af995e3a63a09d7 /packages/snes232
parent87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff)
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/snes232')
-rw-r--r--packages/snes232/.mtn2git_empty0
-rw-r--r--packages/snes232/Makefile-2.64
-rw-r--r--packages/snes232/snes232-2.6.patch46
3 files changed, 50 insertions, 0 deletions
diff --git a/packages/snes232/.mtn2git_empty b/packages/snes232/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/snes232/.mtn2git_empty
diff --git a/packages/snes232/Makefile-2.6 b/packages/snes232/Makefile-2.6
index e69de29bb2..0719a25d0a 100644
--- a/packages/snes232/Makefile-2.6
+++ b/packages/snes232/Makefile-2.6
@@ -0,0 +1,4 @@
+obj-m := snes232.o
+
+all:
+ make -C $(KERNEL_SOURCE) SUBDIRS=`pwd`
diff --git a/packages/snes232/snes232-2.6.patch b/packages/snes232/snes232-2.6.patch
index e69de29bb2..cfefe488ad 100644
--- a/packages/snes232/snes232-2.6.patch
+++ b/packages/snes232/snes232-2.6.patch
@@ -0,0 +1,46 @@
+--- snes232.c~snes232-2.6.patch 2002-11-18 00:18:44.000000000 +0000
++++ snes232.c 2004-10-10 01:15:10.000000000 +0100
+@@ -60,7 +60,7 @@
+ BTN_B, /* 15 */
+ };
+
+-static void snes232_interrupt(struct serio *serio, unsigned char data, unsigned int flags)
++static irqreturn_t snes232_interrupt(struct serio *serio, unsigned char data, unsigned int flags, struct pt_regs *regs)
+ {
+ struct snes232* snes232 = serio->private;
+ struct input_dev *dev = (data & 0x40) ? &snes232->dev[1] : &snes232->dev[0];
+@@ -85,6 +85,10 @@
+ input_report_key(dev, button_map[btn], down);
+ break;
+ }
++
++ input_sync(dev);
++
++ return IRQ_HANDLED;
+ }
+
+ /*
+@@ -133,10 +137,10 @@
+ snes232->dev[d].absbit[0] = BIT(ABS_X) | BIT(ABS_Y);
+
+ snes232->dev[d].name = snes232_name;
+- snes232->dev[d].idbus = BUS_RS232;
+- snes232->dev[d].idvendor = SERIO_SNES232;
+- snes232->dev[d].idproduct = 0x0001;
+- snes232->dev[d].idversion = 0x0100;
++ snes232->dev[d].id.bustype = BUS_RS232;
++ snes232->dev[d].id.vendor = SERIO_SNES232;
++ snes232->dev[d].id.product = 0x0001;
++ snes232->dev[d].id.version = 0x0100;
+
+ for (i = 0; i < 2; i++) {
+ snes232->dev[d].absmax[ABS_X+i] = 64;
+@@ -148,7 +152,7 @@
+
+ input_register_device(&snes232->dev[d]);
+
+- printk(KERN_INFO "input%d: %s on serio%d\n", snes232->dev[d].number, snes232_name, serio->number);
++ printk(KERN_INFO "%s: %s on %s\n", snes232->dev[d].name, snes232_name, serio->name);
+ }
+ }
+