hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/input/touchscreen/mms114.c
....@@ -454,8 +454,7 @@
454454 data->client = client;
455455 data->input_dev = input_dev;
456456
457
- /* FIXME: switch to device_get_match_data() when available */
458
- match_data = of_device_get_match_data(&client->dev);
457
+ match_data = device_get_match_data(&client->dev);
459458 if (!match_data)
460459 return -EINVAL;
461460
....@@ -558,7 +557,7 @@
558557 /* Release all touch */
559558 for (id = 0; id < MMS114_MAX_TOUCH; id++) {
560559 input_mt_slot(input_dev, id);
561
- input_mt_report_slot_state(input_dev, MT_TOOL_FINGER, false);
560
+ input_mt_report_slot_inactive(input_dev);
562561 }
563562
564563 input_mt_report_pointer_emulation(input_dev, true);