summaryrefslogtreecommitdiff
path: root/skey.c
diff options
context:
space:
mode:
authorknolax <1339802534.kk@gmail.com>2017-12-23 13:14:51 -0500
committerknolax <1339802534.kk@gmail.com>2017-12-23 13:14:51 -0500
commitbe2c1d862806ad023b49682c95579b1bbf118b1b (patch)
treef63ee47bd1d51ed2524cf8bbc60e6fbacf98fe90 /skey.c
parent641863393b0482b56465f0efc846a5c40be6fb88 (diff)
fixed typo
Diffstat (limited to 'skey.c')
-rw-r--r--skey.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/skey.c b/skey.c
index 13ce0ae..0d084f6 100644
--- a/skey.c
+++ b/skey.c
@@ -133,7 +133,7 @@ static int __init skey_init (void) {
printk(KERN_ALERT "skey: column_pins[%d], BCM %d request failed\n", i, column_pins[i]);
return -EINVAL;
}
- if (gpio_direction_input(column_pins[i], 0)) {
+ if (gpio_direction_input(column_pins[i])) {
printk(KERN_ALERT "skey: column_pins[%d], BCM %d, set output failed\n",i, column_pins[i]);
}
i++;
@@ -151,7 +151,7 @@ static int __init skey_init (void) {
printk(KERN_ALERT "skey: row_pins[%d], BCM %d request failed\n", j, row_pins[j]);
return -EINVAL;
}
- if (gpio_direction_output(row_pins[j])) {
+ if (gpio_direction_output(row_pins[j], 0)) {
printk(KERN_ALERT "skey: row_pins[%d], BCM %d, set output failed\n",j, row_pins[j]);
}
j++;