From 23fa18eaa71266feff7ba8d83022d9e1cc83c65a Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Fri, 10 May 2024 07:42:03 +0000 Subject: [PATCH] disable pwm7 --- kernel/drivers/input/touchscreen/wacom_w9013.c | 7 ------- 1 files changed, 0 insertions(+), 7 deletions(-) diff --git a/kernel/drivers/input/touchscreen/wacom_w9013.c b/kernel/drivers/input/touchscreen/wacom_w9013.c index 70570af..6bbdb01 100644 --- a/kernel/drivers/input/touchscreen/wacom_w9013.c +++ b/kernel/drivers/input/touchscreen/wacom_w9013.c @@ -183,7 +183,6 @@ //struct wacom_features *features = wac_i2c->features; u8 *data = wac_i2c->data; unsigned int x, y, pressure; - signed short tilt_x, tilt_y; unsigned char tsw, f1, f2, ers; int error; @@ -201,8 +200,6 @@ x = le16_to_cpup((__le16 *)&data[4]); y = le16_to_cpup((__le16 *)&data[6]); pressure = le16_to_cpup((__le16 *)&data[8]); - tilt_x = le16_to_cpup((__le16 *)&data[11]); - tilt_y = le16_to_cpup((__le16 *)&data[13]); if (!wac_i2c->prox) wac_i2c->tool = (data[3] & 0x0c) ? @@ -226,8 +223,6 @@ input_report_key(input, BTN_STYLUS2, f2); input_report_abs(input, ABS_X, x); input_report_abs(input, ABS_Y, y); - input_report_abs(input, ABS_TILT_X, tilt_x / 100); - input_report_abs(input, ABS_TILT_Y, tilt_y / 100); input_report_abs(input, ABS_PRESSURE, pressure); input_sync(input); @@ -408,8 +403,6 @@ input_set_abs_params(input, ABS_X, 0, features.x_max, 0, 0); input_set_abs_params(input, ABS_Y, 0, features.y_max, 0, 0); input_set_abs_params(input, ABS_PRESSURE, 0, features.pressure_max, 0, 0); - input_set_abs_params(input, ABS_TILT_X, -90, 90, 0, 0); - input_set_abs_params(input, ABS_TILT_Y, -90, 90, 0, 0); input_set_drvdata(input, wac_i2c); -- Gitblit v1.6.2