Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: omap-keypad - remove set_col_gpio_val() and get_row_gpio_val()

Commit f799a3d8fe170159257b75c1baf48a7c1f625d1d ("Input: omap-keypad:
Remove dependencies to mach includes") removed users of the above
functions, but left them in the code.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

-25
-25
drivers/input/keyboard/omap-keypad.c
··· 64 64 static unsigned int *row_gpios; 65 65 static unsigned int *col_gpios; 66 66 67 - #ifdef CONFIG_ARCH_OMAP2 68 - static void set_col_gpio_val(struct omap_kp *omap_kp, u8 value) 69 - { 70 - int col; 71 - 72 - for (col = 0; col < omap_kp->cols; col++) 73 - gpio_set_value(col_gpios[col], value & (1 << col)); 74 - } 75 - 76 - static u8 get_row_gpio_val(struct omap_kp *omap_kp) 77 - { 78 - int row; 79 - u8 value = 0; 80 - 81 - for (row = 0; row < omap_kp->rows; row++) { 82 - if (gpio_get_value(row_gpios[row])) 83 - value |= (1 << row); 84 - } 85 - return value; 86 - } 87 - #else 88 - #define set_col_gpio_val(x, y) do {} while (0) 89 - #define get_row_gpio_val(x) 0 90 - #endif 91 - 92 67 static irqreturn_t omap_kp_interrupt(int irq, void *dev_id) 93 68 { 94 69 /* disable keyboard interrupt and schedule for handling */