Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Input: tsc2007 - accept standard properties

Only some driver-specific properties were accepted, change it
to use the now-available standard properties which are
found in devicetrees containing this chip.

Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Link: https://lore.kernel.org/r/20241205204413.2466775-2-akemnade@kernel.org
Signed-off-by: Kevin Hilman <khilman@baylibre.com>

authored by

Andreas Kemnade and committed by
Kevin Hilman
6ef4ea3c 40384c84

+4 -3
+2
drivers/input/touchscreen/tsc2007.h
··· 19 19 #ifndef _TSC2007_H 20 20 #define _TSC2007_H 21 21 22 + #include <linux/input/touchscreen.h> 22 23 struct gpio_desc; 23 24 24 25 #define TSC2007_MEASURE_TEMP0 (0x0 << 4) ··· 64 63 65 64 struct i2c_client *client; 66 65 66 + struct touchscreen_properties prop; 67 67 u16 model; 68 68 u16 x_plate_ohms; 69 69 u16 max_rt;
+2 -3
drivers/input/touchscreen/tsc2007_core.c
··· 142 142 rt = ts->max_rt - rt; 143 143 144 144 input_report_key(input, BTN_TOUCH, 1); 145 - input_report_abs(input, ABS_X, tc.x); 146 - input_report_abs(input, ABS_Y, tc.y); 145 + touchscreen_report_pos(input, &ts->prop, tc.x, tc.y, false); 147 146 input_report_abs(input, ABS_PRESSURE, rt); 148 147 149 148 input_sync(input); ··· 338 339 input_set_drvdata(input_dev, ts); 339 340 340 341 input_set_capability(input_dev, EV_KEY, BTN_TOUCH); 341 - 342 342 input_set_abs_params(input_dev, ABS_X, 0, MAX_12BIT, ts->fuzzx, 0); 343 343 input_set_abs_params(input_dev, ABS_Y, 0, MAX_12BIT, ts->fuzzy, 0); 344 + touchscreen_parse_properties(input_dev, false, &ts->prop); 344 345 input_set_abs_params(input_dev, ABS_PRESSURE, 0, MAX_12BIT, 345 346 ts->fuzzz, 0); 346 347