Jeff LaBundy
4a76d861d9
Input: iqs5xx - simplify axis setup logic
...
The present implementation manipulates axis swap and inversion fields
in the device to more or less duplicate what touchscreen_report_pos()
does. The resulting logic is convoluted and difficult to follow.
Instead report the maximum X and Y coordinates in earnest as they are
read from the device, then let touchscreen_parse_properties() fix the
axes up as necessary. Finally, use touchscreen_report_pos() to report
the transformed coordinates.
Last but not least, the maximum X and Y coordinates are not functions
of the number of rows/columns that comprise the touch surface. Either
coordinate is simply limited to 1 below what is reported for absolute
X or Y coordinates when no fingers are present (0xFFFF).
Signed-off-by: Jeff LaBundy <jeff@labundy.com >
Link: https://lore.kernel.org/r/1611002626-5889-7-git-send-email-jeff@labundy.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2021-01-24 20:49:07 -08:00
..
2019-08-14 10:49:01 -07:00
2020-12-10 23:39:15 -08:00
2019-05-30 11:25:18 -07:00
2019-05-30 11:25:18 -07:00
2020-12-02 22:10:33 -08:00
2019-05-30 11:25:18 -07:00
2021-01-20 23:21:54 -08:00
2019-11-11 16:02:30 -08:00
2020-12-10 23:39:18 -08:00
2020-12-02 22:10:33 -08:00
2019-08-14 10:49:01 -07:00
2019-09-02 09:07:38 -07:00
2020-12-02 22:10:33 -08:00
2020-12-02 22:10:33 -08:00
2020-03-20 14:57:54 +01:00
2019-10-27 11:14:22 -07:00
2020-05-09 22:26:48 -07:00
2019-05-30 11:29:19 -07:00
2020-11-08 22:35:48 -08:00
2020-11-08 22:35:48 -08:00
2019-06-05 17:36:37 +02:00
2019-06-05 17:36:37 +02:00
2020-12-02 22:10:33 -08:00
2019-06-05 17:30:29 +02:00
2019-06-05 17:36:37 +02:00
2019-06-05 17:36:37 +02:00
2019-06-05 17:36:37 +02:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:32 -07:00
2019-06-19 17:09:55 +02:00
2020-12-10 21:46:24 -08:00
2020-12-02 22:10:33 -08:00
2019-06-19 17:09:55 +02:00
2018-09-18 15:28:07 -07:00
2020-12-02 22:10:33 -08:00
2021-01-24 18:20:53 -08:00
2020-07-07 11:25:54 -07:00
2020-08-06 17:34:19 -07:00
2019-08-14 10:49:01 -07:00
2019-06-19 17:09:55 +02:00
2020-11-19 19:56:39 -08:00
2019-05-30 11:26:35 -07:00
2019-06-19 17:09:55 +02:00
2019-08-12 00:03:11 -07:00
2019-05-21 10:50:45 +02:00
2019-06-19 17:09:55 +02:00
2020-02-10 10:00:22 -08:00
2020-12-02 22:10:33 -08:00
2019-06-19 17:09:55 +02:00
2020-12-02 22:10:33 -08:00
2021-01-24 20:49:07 -08:00
2019-06-19 17:09:55 +02:00
2020-10-04 16:08:09 -07:00
2020-12-02 22:10:33 -08:00
2019-05-30 11:26:32 -07:00
2020-10-04 16:08:09 -07:00
2020-07-07 11:25:54 -07:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:32 -07:00
2021-01-19 19:03:13 -08:00
2018-11-12 11:52:05 -08:00
2019-06-19 17:09:55 +02:00
2020-12-02 22:10:33 -08:00
2019-06-19 17:09:55 +02:00
2019-07-24 12:48:47 +03:00
2020-03-24 15:21:24 -07:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2020-12-02 22:10:33 -08:00
2020-05-12 13:18:26 -07:00
2020-12-15 17:49:33 -08:00
2020-11-08 22:33:52 -08:00
2019-06-05 17:36:37 +02:00
2019-10-27 11:14:24 -07:00
2020-03-20 14:57:53 +01:00
2019-06-05 17:36:37 +02:00
2020-11-11 17:54:12 -08:00
2020-09-16 10:38:58 -07:00
2021-01-19 19:03:18 -08:00
2020-01-10 14:42:52 -08:00
2020-07-16 12:32:26 -07:00
2021-01-19 19:03:16 -08:00
2019-06-19 17:09:55 +02:00
2019-02-19 10:38:19 -08:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-10-29 17:13:41 -07:00
2019-10-29 17:13:40 -07:00
2019-06-05 17:37:05 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-06-19 17:09:55 +02:00
2020-06-14 11:49:59 +01:00
2019-06-19 17:09:55 +02:00
2020-12-02 22:10:33 -08:00
2021-01-19 19:03:14 -08:00
2019-10-27 11:14:25 -07:00
2019-08-20 12:03:46 -07:00
2020-12-02 22:10:33 -08:00
2020-08-23 17:36:59 -05:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:37 -07:00
2020-12-02 22:10:33 -08:00
2020-12-02 22:10:33 -08:00
2019-05-30 11:26:32 -07:00