summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorknolax <1339802534.kk@gmail.com>2017-12-20 00:44:08 -0500
committerknolax <1339802534.kk@gmail.com>2017-12-20 00:44:08 -0500
commit37263292a092b221d06b8ae1ddcf4b077eb47ba2 (patch)
tree108f082d78ad73d0f6b2f6782ffb3c7c815f7b62
parentfcba4be107df5b150251d4569a86dc8ff3e824c0 (diff)
fixed typo
-rw-r--r--skey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/skey.c b/skey.c
index 70955f4..9025664 100644
--- a/skey.c
+++ b/skey.c
@@ -146,7 +146,7 @@ static int __init skey_init (void) {
return -EINVAL;
}
//requests access of the GPIO
- if (gpio_request_one(row_pins[j], GPIOF_DIR_OUT_INIT_LOW ,rlabels[j])) {
+ if (gpio_request_one(row_pins[j], GPIOF_OUT_INIT_LOW ,rlabels[j])) {
printk(KERN_ALERT "skey: row_pins[%d], BCM %d request failed\n", j, row_pins[j]);
return -EINVAL;
}