Skip to content

Commit 2e8f3d2

Browse files
pwnrazronettboots
authored andcommitted
goodix_driver_gt9886: use u8 instead of int for udfps* and double_tap*
Save them bytes Signed-off-by: onettboots <blackcocopet@gmail.com>
1 parent 7d24064 commit 2e8f3d2

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

drivers/input/touchscreen/goodix_driver_gt9886/goodix_ts_core.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -497,10 +497,10 @@ struct goodix_ts_core {
497497
int aod_status;
498498
int fod_pressed;
499499
int fod_test;
500-
int udfps_pressed;
501-
int udfps_enabled;
502-
int double_tap_pressed;
503-
int double_tap_enabled;
500+
u8 udfps_pressed;
501+
u8 udfps_enabled;
502+
u8 double_tap_pressed;
503+
u8 double_tap_enabled;
504504
int result_type;
505505
#ifdef CONFIG_TOUCHSCREEN_GOODIX_GTX8_GAMEMODE
506506
int touch_mode[Touch_Mode_NUM][VALUE_TYPE_SIZE];
@@ -1280,10 +1280,10 @@ struct goodix_ts_core {
12801280
int aod_status;
12811281
int fod_pressed;
12821282
int fod_test;
1283-
int udfps_pressed;
1284-
int udfps_enabled;
1285-
int double_tap_pressed;
1286-
int double_tap_enabled;
1283+
u8 udfps_pressed;
1284+
u8 udfps_enabled;
1285+
u8 double_tap_pressed;
1286+
u8 double_tap_enabled;
12871287
int result_type;
12881288
struct class *gtp_tp_class;
12891289
struct device *gtp_touch_dev;

0 commit comments

Comments
 (0)