hc
2024-05-16 8d2a02b24d66aa359e83eebc1ed3c0f85367a1cb
kernel/drivers/input/touchscreen/wacom_w9013.c
....@@ -183,7 +183,6 @@
183183 //struct wacom_features *features = wac_i2c->features;
184184 u8 *data = wac_i2c->data;
185185 unsigned int x, y, pressure;
186
- signed short tilt_x, tilt_y;
187186 unsigned char tsw, f1, f2, ers;
188187 int error;
189188
....@@ -201,8 +200,6 @@
201200 x = le16_to_cpup((__le16 *)&data[4]);
202201 y = le16_to_cpup((__le16 *)&data[6]);
203202 pressure = le16_to_cpup((__le16 *)&data[8]);
204
- tilt_x = le16_to_cpup((__le16 *)&data[11]);
205
- tilt_y = le16_to_cpup((__le16 *)&data[13]);
206203
207204 if (!wac_i2c->prox)
208205 wac_i2c->tool = (data[3] & 0x0c) ?
....@@ -226,8 +223,6 @@
226223 input_report_key(input, BTN_STYLUS2, f2);
227224 input_report_abs(input, ABS_X, x);
228225 input_report_abs(input, ABS_Y, y);
229
- input_report_abs(input, ABS_TILT_X, tilt_x / 100);
230
- input_report_abs(input, ABS_TILT_Y, tilt_y / 100);
231226 input_report_abs(input, ABS_PRESSURE, pressure);
232227 input_sync(input);
233228
....@@ -408,8 +403,6 @@
408403 input_set_abs_params(input, ABS_X, 0, features.x_max, 0, 0);
409404 input_set_abs_params(input, ABS_Y, 0, features.y_max, 0, 0);
410405 input_set_abs_params(input, ABS_PRESSURE, 0, features.pressure_max, 0, 0);
411
- input_set_abs_params(input, ABS_TILT_X, -90, 90, 0, 0);
412
- input_set_abs_params(input, ABS_TILT_Y, -90, 90, 0, 0);
413406
414407 input_set_drvdata(input, wac_i2c);
415408