summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2012-09-27 15:18:42 +0000
committerTom Rini <trini@ti.com>2012-10-15 11:54:04 -0700
commit71dc6bca4ef61d10f1327114ac1d53b6865a6030 (patch)
tree287f0de81f8b4008c11a07296ec272d7ed76d843 /include
parent1b1d3e6461e9195f825d6d8aa6a2a0e1e3188f62 (diff)
downloadu-boot-imx-71dc6bca4ef61d10f1327114ac1d53b6865a6030.zip
u-boot-imx-71dc6bca4ef61d10f1327114ac1d53b6865a6030.tar.gz
u-boot-imx-71dc6bca4ef61d10f1327114ac1d53b6865a6030.tar.bz2
input: Allow key ghosting filter to be disabled
Some keyboards will not need a key ghosting filter, so make this feature optional. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/key_matrix.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/key_matrix.h b/include/key_matrix.h
index f413314..9629716 100644
--- a/include/key_matrix.h
+++ b/include/key_matrix.h
@@ -40,6 +40,7 @@ struct key_matrix {
const u8 *plain_keycode; /* key code for each row / column */
const u8 *fn_keycode; /* ...when Fn held down */
int fn_pos; /* position of Fn key in key (or -1) */
+ int ghost_filter; /* non-zero to enable ghost filter */
};
/* Information about a particular key (row, column pair) in the matrix */
@@ -92,8 +93,10 @@ int key_matrix_decode_fdt(struct key_matrix *config, const void *blob,
* @param config Keyboard matrix config
* @param rows Number of rows in key matrix
* @param cols Number of columns in key matrix
+ * @param ghost_filter Non-zero to enable ghost filtering
* @return 0 if ok, -1 on error
*/
-int key_matrix_init(struct key_matrix *config, int rows, int cols);
+int key_matrix_init(struct key_matrix *config, int rows, int cols,
+ int ghost_filter);
#endif