summaryrefslogtreecommitdiff
path: root/skey.c
diff options
context:
space:
mode:
authorknolax <1339802534.kk@gmail.com>2017-12-29 16:20:52 -0500
committerknolax <1339802534.kk@gmail.com>2017-12-29 16:20:52 -0500
commit59fd478be4d6a7a20b327fe2cf7117e99f16bd6e (patch)
tree0acfbc9ef86dacae12415c39d638cb952b49db00 /skey.c
parent0be25ac4e78f21b42592ee9183c0159efa40270a (diff)
fixed typos
Diffstat (limited to 'skey.c')
-rw-r--r--skey.c8
1 files changed, 4 insertions, 4 deletions
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);
}