aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/snes232/snes232-2.6.patch
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
committerDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
commit709c4d66e0b107ca606941b988bad717c0b45d9b (patch)
tree37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/snes232/snes232-2.6.patch
parentfa6cd5a3b993f16c27de4ff82b42684516d433ba (diff)
downloadopenembedded-709c4d66e0b107ca606941b988bad717c0b45d9b.tar.gz
rename packages/ to recipes/ per earlier agreement
See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Mike Westerhof <mwester@dls.net> Acked-by: Philip Balister <philip@balister.org> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <hrw@openembedded.org> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/snes232/snes232-2.6.patch')
-rw-r--r--recipes/snes232/snes232-2.6.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/recipes/snes232/snes232-2.6.patch b/recipes/snes232/snes232-2.6.patch
new file mode 100644
index 0000000000..cfefe488ad
--- /dev/null
+++ b/recipes/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);
+ }
+ }
+