Skip to content

Commit 5128de8

Browse files
tititiou36dtor
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/6bab1449c01c4537aa2d9cb4481e1d5da8aa2389.1714546173.git.christophe.jaillet@wanadoo.fr Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent f88f4a1 commit 5128de8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/input/keyboard/cros_ec_keyb.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
* @rows: Number of rows in the keypad
3636
* @cols: Number of columns in the keypad
3737
* @row_shift: log2 or number of rows, rounded up
38-
* @keymap_data: Matrix keymap data used to convert to keyscan values
3938
* @ghost_filter: true to enable the matrix key-ghosting filter
4039
* @valid_keys: bitmap of existing keys for each matrix column
4140
* @old_kb_state: bitmap of keys pressed last scan
@@ -50,7 +49,6 @@ struct cros_ec_keyb {
5049
unsigned int rows;
5150
unsigned int cols;
5251
int row_shift;
53-
const struct matrix_keymap_data *keymap_data;
5452
bool ghost_filter;
5553
uint8_t *valid_keys;
5654
uint8_t *old_kb_state;

0 commit comments

Comments
 (0)