Input: cyttsp - set abs params for ABS_MT_TOUCH_MAJOR
[sfrench/cifs-2.6.git] / drivers / input / touchscreen / cyttsp_core.c
index b0477f55fb79b31520fed259456f1188b9883df8..3d605f4cbed9ea910a4687232e21b863e7c08f80 100644 (file)
@@ -652,6 +652,9 @@ struct cyttsp *cyttsp_probe(const struct cyttsp_bus_ops *bus_ops,
 
        input_set_capability(input_dev, EV_ABS, ABS_MT_POSITION_X);
        input_set_capability(input_dev, EV_ABS, ABS_MT_POSITION_Y);
+       /* One byte for width 0..255 so this is the limit */
+       input_set_abs_params(input_dev, ABS_MT_TOUCH_MAJOR, 0, 255, 0, 0);
+
        touchscreen_parse_properties(input_dev, true, NULL);
 
        error = input_mt_init_slots(input_dev, CY_MAX_ID, 0);