c - How to use the matrix_keypad.h file for a custom keypad driver? -


can emulate custom keypad input_dev (from input.h)

//an example 1 key. button_dev = input_allocate_device();     if (!button_dev) {         printk(kern_err "button.c: not enough memory\n");         error = -enomem;         goto err_free_irq;     }      button_dev->evbit[0] = bit_mask(ev_key);     button_dev->keybit[bit_word(btn_0)] = bit_mask(btn_0); 

or have use matrix_keypad header file?if yes how?


Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -