diff options
author | knolax <1339802534.kk@gmail.com> | 2017-12-27 21:35:36 -0500 |
---|---|---|
committer | knolax <1339802534.kk@gmail.com> | 2017-12-27 21:35:36 -0500 |
commit | fa9ae697b0502084d4adf9de48235a876435561b (patch) | |
tree | 7307b0d557ced1c21c15b37a3ddf4e6e8180065f | |
parent | 2191a88af091546b9ef958a52b48caafe25739cd (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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; } /* |