diff --git a/drivers/input/touchscreen/stmicro_mmi/fts.c b/drivers/input/touchscreen/stmicro_mmi/fts.c index de5b837fce38..f3e865982e88 100644 --- a/drivers/input/touchscreen/stmicro_mmi/fts.c +++ b/drivers/input/touchscreen/stmicro_mmi/fts.c @@ -2161,10 +2161,11 @@ static void fts_enter_pointer_event_handler(struct fts_ts_info *info, unsigned input_report_abs(info->input_dev, ABS_MT_POSITION_Y, y); input_report_abs(info->input_dev, ABS_MT_TOUCH_MAJOR, z); input_report_abs(info->input_dev, ABS_MT_TOUCH_MINOR, z); -#if KERNEL_VERSION(5, 4, 0) < LINUX_VERSION_CODE + /* input_report_abs(info->input_dev, ABS_MT_PRESSURE, z); input_report_abs(info->input_dev, ABS_MT_DISTANCE, distance); -#endif + */ + /* logError(0, "%s %s : Event 0x%02x - ID[%d], (x, y) = (%3d, %3d) * Size = %d\n", tag, __func__, *event, touchId, x, y, touchType); */ @@ -4210,12 +4211,12 @@ static int fts_probe(struct spi_device *client) AREA_MAX, 0, 0); input_set_abs_params(info->input_dev, ABS_MT_TOUCH_MINOR, AREA_MIN, AREA_MAX, 0, 0); -#if KERNEL_VERSION(5, 4, 0) < LINUX_VERSION_CODE + /* input_set_abs_params(info->input_dev, ABS_MT_PRESSURE, PRESSURE_MIN, PRESSURE_MAX, 0, 0); input_set_abs_params(info->input_dev, ABS_MT_DISTANCE, DISTANCE_MIN, DISTANCE_MAX, 0, 0); -#endif + */ #ifdef GESTURE_MODE input_set_capability(info->input_dev, EV_KEY, KEY_WAKEUP);