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

Input: cros_ec_keyb - remove an unused field in struct cros_ec_keyb

In "struct cros_ec_keyb", the 'keymap_data' field is unused.
Remove it.

Found with cppcheck, unusedStructMember.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/6bab1449c01c4537aa2d9cb4481e1d5da8aa2389.1714546173.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Christophe JAILLET and committed by
Dmitry Torokhov
5128de84 f88f4a16

-2
-2
drivers/input/keyboard/cros_ec_keyb.c
··· 35 35 * @rows: Number of rows in the keypad 36 36 * @cols: Number of columns in the keypad 37 37 * @row_shift: log2 or number of rows, rounded up 38 - * @keymap_data: Matrix keymap data used to convert to keyscan values 39 38 * @ghost_filter: true to enable the matrix key-ghosting filter 40 39 * @valid_keys: bitmap of existing keys for each matrix column 41 40 * @old_kb_state: bitmap of keys pressed last scan ··· 49 50 unsigned int rows; 50 51 unsigned int cols; 51 52 int row_shift; 52 - const struct matrix_keymap_data *keymap_data; 53 53 bool ghost_filter; 54 54 uint8_t *valid_keys; 55 55 uint8_t *old_kb_state;