Skip to content

Commit 8c264d3

Browse files
faxe1008nashif
authored andcommitted
drivers: input: chsc5x: Add INPUT_TOUCH_STRUCT_CHECK for config
Adds the missing INPUT_TOUCH_STRUCT_CHECK for the config struct, to harden against member reordering. Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
1 parent 421a423 commit 8c264d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/input/input_chsc5x.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ struct chsc5x_data {
2828
struct gpio_callback int_gpio_cb;
2929
};
3030

31+
INPUT_TOUCH_STRUCT_CHECK(struct chsc5x_config);
32+
3133
enum {
3234
CHSC5X_IC_TYPE_CHSC5472 = 0x00,
3335
CHSC5X_IC_TYPE_CHSC5448 = 0x01,

0 commit comments

Comments
 (0)