Skip to contentSkip to conversation

sunkbd.c: fix sunkbd_enable(sunkbd, 0); obvious

PATCH Applied [email protected] 2 participants 2 messages Dec 14, 2006 Input drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sunkbd.c: fix sunkbd_enable(sunkbd, 0); obvious

From: Fabrice Knevez <[email protected]>

"sunkbd_enable(sunkbd, 0);" has no effect. Adding "sunkbd->enabled = enable" in sunkbd_enable (obvious)

---

Sorry about thunderbird mangling the patch in the first email...
I don't have any sun keyboard, i was just reading the sources and it seemed like an obvious modification.

drivers/input/keyboard/sunkbd.c renamed from drivers/input/keyboard/sunkbd.c.orig +1 -1
@@ -225,7 +225,7 @@ static void sunkbd_reinit(void *data)
 static void sunkbd_enable(struct sunkbd *sunkbd, int enable)
 {
 	serio_pause_rx(sunkbd->serio);
-	sunkbd->enabled = 1;
+	sunkbd->enabled = enable;
 	serio_continue_rx(sunkbd->serio);
 }