hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/input/touchscreen/melfas_mip4.c
....@@ -1,19 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * MELFAS MIP4 Touchscreen
34 *
45 * Copyright (C) 2016 MELFAS Inc.
56 *
67 * Author : Sangwon Jee <jeesw@melfas.com>
7
- *
8
- * This program is free software; you can redistribute it and/or
9
- * modify it under the terms of the GNU General Public License
10
- * as published by the Free Software Foundation; either version 2
11
- * of the License, or (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
178 */
189
1910 #include <linux/acpi.h>
....@@ -400,7 +391,7 @@
400391 /* Screen */
401392 for (i = 0; i < MIP4_MAX_FINGERS; i++) {
402393 input_mt_slot(ts->input, i);
403
- input_mt_report_slot_state(ts->input, MT_TOOL_FINGER, 0);
394
+ input_mt_report_slot_inactive(ts->input);
404395 }
405396
406397 /* Keys */
....@@ -543,7 +534,7 @@
543534 } else {
544535 /* Release event */
545536 input_mt_slot(ts->input, id);
546
- input_mt_report_slot_state(ts->input, MT_TOOL_FINGER, 0);
537
+ input_mt_report_slot_inactive(ts->input);
547538 }
548539
549540 input_mt_sync_frame(ts->input);
....@@ -1462,7 +1453,7 @@
14621453 "ce", GPIOD_OUT_LOW);
14631454 if (IS_ERR(ts->gpio_ce)) {
14641455 error = PTR_ERR(ts->gpio_ce);
1465
- if (error != EPROBE_DEFER)
1456
+ if (error != -EPROBE_DEFER)
14661457 dev_err(&client->dev,
14671458 "Failed to get gpio: %d\n", error);
14681459 return error;