Skip to content

Commit f88f4a1

Browse files
tititiou36dtor
authored andcommitted
Input: lpc32xx-keys - remove an unused field in struct lpc32xx_kscan_drv
In "struct lpc32xx_kscan_drv", the 'irq' field is unused. Remove it. Found with cppcheck, unusedStructMember. While at it, move the 'row_shift' field in order to fill a hole in the structure (at least on 64 bits arch). Signed-off-by: Christophe JAILLET <[email protected]> Link: https://lore.kernel.org/r/e006dfb77e35762c6e4f8ba6ba792b0c52fde375.1714545542.git.christophe.jaillet@wanadoo.fr Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 9df3278 commit f88f4a1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/input/keyboard/lpc32xx-keys.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,13 @@ struct lpc32xx_kscan_drv {
5757
struct input_dev *input;
5858
struct clk *clk;
5959
void __iomem *kscan_base;
60-
unsigned int irq;
6160

6261
u32 matrix_sz; /* Size of matrix in XxY, ie. 3 = 3x3 */
6362
u32 deb_clks; /* Debounce clocks (based on 32KHz clock) */
6463
u32 scan_delay; /* Scan delay (based on 32KHz clock) */
6564

66-
unsigned short *keymap; /* Pointer to key map for the scan matrix */
6765
unsigned int row_shift;
66+
unsigned short *keymap; /* Pointer to key map for the scan matrix */
6867

6968
u8 lastkeystates[8];
7069
};

0 commit comments

Comments
 (0)