From 59fd478be4d6a7a20b327fe2cf7117e99f16bd6e Mon Sep 17 00:00:00 2001 From: knolax <1339802534.kk@gmail.com> Date: Fri, 29 Dec 2017 16:20:52 -0500 Subject: fixed typos --- skey.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'skey.c') diff --git a/skey.c b/skey.c index 070be79..0bd4251 100644 --- a/skey.c +++ b/skey.c @@ -165,14 +165,14 @@ int processkey(int row, int column, int state) { break; //if current_keymap is out of range [0,3] default: - printk(KERN_ALERT "skey: current_keymap out of bounds\n") + printk(KERN_ALERT "skey: current_keymap out of bounds\n"); return -EINVAL; break; } printk("skey: previous KEYSTATE_PHYS for r:%d,c:%d was %d\n", row, column, (KEYSTATE_PHYS & keystate[row][column])); //falling edge if ((KEYSTATE_PHYS & keystate[row][column]) && !state) { - printk(KERN_INFO "skey: falling edge detected for r:%d,c:%d\n". row. column); + printk(KERN_INFO "skey: falling edge detected for r:%d,c:%d\n", row, column); //after the previous keystate is checked, it is updated if (state) { keystate[row][column] = KEYSTATE_PHYS | keystate[row][column]; @@ -188,7 +188,7 @@ int processkey(int row, int column, int state) { } //rising edge }else if (!(KEYSTATE_PHYS & keystate[row][column]) && state) { - printk(KERN_INFO "skey: rising edge detected for r:%d,c:%d\n". row. column); + printk(KERN_INFO "skey: rising edge detected for r:%d,c:%d\n", row, column); //after the previous keystate is checked, it is updated if (state) { keystate[row][column] = KEYSTATE_PHYS | keystate[row][column]; @@ -312,7 +312,7 @@ int skey_update_thread (void *data) { while (column_index < 10) { if (gpio_get_value_cansleep(column_pins[column_index])) { processkey(row_index, column_index, 1); - printk(KERN_INFO, "skey:button pressed at r:%d,c:%d\n", row_index, column_index); + printk(KERN_INFO "skey:button pressed at r:%d,c:%d\n", row_index, column_index); } else { processkey(row_index, column_index, 0); } -- cgit v1.1