Skip to content

Commit 16f3f71

Browse files
xNombreonettboots
authored andcommitted
input: goodix: Remove swap axis feature
It is not used in any of devices we build for. Signed-off-by: Andrzej Perczak <linux@andrzejperczak.com> Signed-off-by: onettboots <blackcocopet@gmail.com>
1 parent 84e0506 commit 16f3f71

3 files changed

Lines changed: 1 addition & 13 deletions

File tree

drivers/input/touchscreen/goodix_driver_gt9886/goodix_ts_core.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1460,8 +1460,6 @@ static void goodix_ts_set_input_params(struct input_dev *input_dev,
14601460
{
14611461
int i;
14621462

1463-
if (ts_bdata->swap_axis)
1464-
swap(ts_bdata->panel_max_x, ts_bdata->panel_max_y);
14651463
input_set_abs_params(input_dev, ABS_MT_POSITION_X,
14661464
0, ts_bdata->panel_max_x, 0, 0);
14671465
input_set_abs_params(input_dev, ABS_MT_POSITION_Y,

drivers/input/touchscreen/goodix_driver_gt9886/goodix_ts_core.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,6 @@ struct goodix_module {
938938
* @irq_flag: irq trigger type
939939
* @power_on_delay_us: power on delay time (us)
940940
* @power_off_delay_us: power off delay time (us)
941-
* @swap_axis: whether swaw x y axis
942941
* @panel_max_id: max supported fingers
943942
* @panel_max_x/y/w/p: resolution and size
944943
* @panel_max_key: max supported keys
@@ -959,7 +958,6 @@ struct goodix_ts_board_data {
959958
unsigned int power_on_delay_us;
960959
unsigned int power_off_delay_us;
961960

962-
unsigned int swap_axis;
963961
unsigned int panel_max_id; /*max touch id*/
964962
unsigned int panel_max_x;
965963
unsigned int panel_max_y;

drivers/input/touchscreen/goodix_driver_gt9886/goodix_ts_i2c.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,6 @@ static int goodix_parse_dt_resolution(struct device_node *node,
129129
if (r)
130130
err = -ENOENT;
131131

132-
board_data->swap_axis = of_property_read_bool(node,
133-
"goodix,swap-axis");
134-
135132
board_data->x2x = of_property_read_bool(node,
136133
"goodix,x2x");
137134

@@ -1580,15 +1577,10 @@ static void goodix_swap_coords(struct goodix_ts_device *dev,
15801577
struct goodix_ts_coords *coords,
15811578
int touch_num)
15821579
{
1583-
int i, temp;
1580+
int i;
15841581
struct goodix_ts_board_data *bdata = dev->board_data;
15851582

15861583
for (i = 0; i < touch_num; i++) {
1587-
if (bdata->swap_axis) {
1588-
temp = coords->x;
1589-
coords->x = coords->y;
1590-
coords->y = temp;
1591-
}
15921584
if (bdata->x2x)
15931585
coords->x = bdata->panel_max_x - coords->x;
15941586
if (bdata->y2y)

0 commit comments

Comments
 (0)