Skip to contentSkip to conversation

Doc bug in example input driver

PATCH Applied Steven Whitehouse 2 participants 2 messages Nov 26, 2007 – Nov 27, 2007

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

The input example driver uses BTN_0 in the later stages of the example, so this changes the interrupt routine to match.

Documentation/input/input-programming.txt +1 -1
index 47fc868..81905e8 100644
@@ -22,7 +22,7 @@ static struct input_dev *button_dev;
 
 static void button_interrupt(int irq, void *dummy, struct pt_regs *fp)
 {
-	input_report_key(button_dev, BTN_1, inb(BUTTON_PORT) & 1);
+	input_report_key(button_dev, BTN_0, inb(BUTTON_PORT) & 1);
 	input_sync(button_dev);
 }
 
maintainer Applied
#1 lore raw
Quoted 5 lines · Steven Whitehouse

The input example driver uses BTN_0 in the later stages of the example, so this changes the interrupt routine to match.

Applied, thank you Steven.

Signature · 1 line
Dmitry