]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - Documentation/input/input-programming.txt
Merge branch 'proc' of git://git.kernel.org/pub/scm/linux/kernel/git/adobriyan/proc
[linux-2.6-omap-h63xx.git] / Documentation / input / input-programming.txt
index 4d932dc660982d34fe488a2e9d8f10957a4d030b..81905e81585e2de04f9b80a658fb087013acd147 100644 (file)
@@ -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);
 }
 
@@ -79,7 +79,7 @@ In the _init function, which is called either upon module load or when
 booting the kernel, it grabs the required resources (it should also check
 for the presence of the device).
 
-Then it allocates a new input device structure with input_aloocate_device()
+Then it allocates a new input device structure with input_allocate_device()
 and sets up input bitfields. This way the device driver tells the other
 parts of the input systems what it is - what events can be generated or
 accepted by this input device. Our example device can only generate EV_KEY