summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorknolax <1339802534.kk@gmail.com>2017-12-27 21:35:36 -0500
committerknolax <1339802534.kk@gmail.com>2017-12-27 21:35:36 -0500
commitfa9ae697b0502084d4adf9de48235a876435561b (patch)
tree7307b0d557ced1c21c15b37a3ddf4e6e8180065f
parent2191a88af091546b9ef958a52b48caafe25739cd (diff)
after switching the position of 4 in column_pins[10] the problem persisted, i have added lines at the end of init_skey() that explictly set those two pins as input, this is to help debug the issue]
-rw-r--r--skey.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/skey.c b/skey.c
index 590b682..0ffe0cd 100644
--- a/skey.c
+++ b/skey.c
@@ -192,6 +192,9 @@ static int __init skey_init (void) {
printk("skey: setting up update thread...\n");
update_task = kthread_run(skey_update_thread, NULL, "skey_update_thread");
printk(KERN_INFO "skey: module finished initiating\n");
+ //explicitly sets pin 4 and 15 to be inputs.
+ gpio_direction_input(4);
+ gpio_direction_input(15);
return 0;
}
/*