]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/input/keyboard.c
stdio: Pass device pointer to stdio methods
[karo-tx-uboot.git] / drivers / input / keyboard.c
index 5ef1cc06ed8328e57e4074e84d27bfa0712bfc65..be0f3330dbc637f76bf239e0f51ac3e4835f0316 100644 (file)
@@ -70,7 +70,7 @@ static void kbd_put_queue(char data)
 }
 
 /* test if a character is in the queue */
-static int kbd_testc(void)
+static int kbd_testc(struct stdio_dev *dev)
 {
 #if defined(CONFIG_MPC5xxx) || defined(CONFIG_MPC8540) || defined(CONFIG_MPC8541) || defined(CONFIG_MPC8555)
        /* no ISR is used, so received chars must be polled */
@@ -83,7 +83,7 @@ static int kbd_testc(void)
 }
 
 /* gets the character from the queue */
-static int kbd_getc(void)
+static int kbd_getc(struct stdio_dev *dev)
 {
        char c;
        while(in_pointer==out_pointer) {