X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=include%2Fkey_matrix.h;h=8db686040d393b0352c647cc5c77cfe5e9b65840;hb=c34c0246a3600dc4712247b267f71576234e403b;hp=f41331407dc63b795636eb7b293f0c5497320df5;hpb=92c27c5193154465df03a4713b1a5323bb18506b;p=karo-tx-uboot.git diff --git a/include/key_matrix.h b/include/key_matrix.h index f41331407d..8db686040d 100644 --- a/include/key_matrix.h +++ b/include/key_matrix.h @@ -2,23 +2,8 @@ * Keyboard matrix helper functions * * Copyright (c) 2012 The Chromium OS Authors. - * See file CREDITS for list of people who contributed to this - * project. * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, - * MA 02111-1307 USA + * SPDX-License-Identifier: GPL-2.0+ */ #ifndef _KEY_MATRIX_H @@ -40,6 +25,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 +78,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