diff --git a/drivers/input/touchscreen/himax_mmi/himax_common.c b/drivers/input/touchscreen/himax_mmi/himax_common.c index f7450b0ff0f4..da8c28066820 100644 --- a/drivers/input/touchscreen/himax_mmi/himax_common.c +++ b/drivers/input/touchscreen/himax_mmi/himax_common.c @@ -1935,7 +1935,7 @@ static void himax_finger_leave(struct himax_ts_data *ts) #endif for (loop_i = 0; loop_i < ts->nFinger_support; loop_i++) { - if (((ts->pre_finger_mask >> loop_i) & 1) == 1) { + if (((ts->old_finger >> loop_i) & 1) == 1) { input_mt_slot(ts->input_dev, loop_i); input_mt_report_slot_state(ts->input_dev, MT_TOOL_FINGER, 0); }