Skip to content

Instantly share code, notes, and snippets.

@NotKit
Created March 27, 2018 22:58
Show Gist options
  • Save NotKit/d0acce00eea9d80512d541156278eda4 to your computer and use it in GitHub Desktop.
Save NotKit/d0acce00eea9d80512d541156278eda4 to your computer and use it in GitHub Desktop.
Fix OnePlus 2 touchscreen
diff --git a/drivers/input/touchscreen/synaptics_driver_s3320.c b/drivers/input/touchscreen/synaptics_driver_s3320.c
index 79b184a0..f3d3872f 100644
--- a/drivers/input/touchscreen/synaptics_driver_s3320.c
+++ b/drivers/input/touchscreen/synaptics_driver_s3320.c
@@ -2105,7 +2105,6 @@ static int synaptics_input_init(struct synaptics_ts_data *ts)
set_bit(EV_ABS, ts->input_dev->evbit);
set_bit(EV_KEY, ts->input_dev->evbit);
set_bit(ABS_MT_TOUCH_MAJOR, ts->input_dev->absbit);
- set_bit(ABS_MT_WIDTH_MAJOR,ts->input_dev->absbit);
set_bit(ABS_MT_POSITION_X, ts->input_dev->absbit);
set_bit(ABS_MT_POSITION_Y, ts->input_dev->absbit);
set_bit(INPUT_PROP_DIRECT, ts->input_dev->propbit);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment