.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * MELFAS MIP4 Touchscreen |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2016 MELFAS Inc. |
---|
5 | 6 | * |
---|
6 | 7 | * 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. |
---|
17 | 8 | */ |
---|
18 | 9 | |
---|
19 | 10 | #include <linux/acpi.h> |
---|
.. | .. |
---|
400 | 391 | /* Screen */ |
---|
401 | 392 | for (i = 0; i < MIP4_MAX_FINGERS; i++) { |
---|
402 | 393 | 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); |
---|
404 | 395 | } |
---|
405 | 396 | |
---|
406 | 397 | /* Keys */ |
---|
.. | .. |
---|
543 | 534 | } else { |
---|
544 | 535 | /* Release event */ |
---|
545 | 536 | 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); |
---|
547 | 538 | } |
---|
548 | 539 | |
---|
549 | 540 | input_mt_sync_frame(ts->input); |
---|
.. | .. |
---|
1462 | 1453 | "ce", GPIOD_OUT_LOW); |
---|
1463 | 1454 | if (IS_ERR(ts->gpio_ce)) { |
---|
1464 | 1455 | error = PTR_ERR(ts->gpio_ce); |
---|
1465 | | - if (error != EPROBE_DEFER) |
---|
| 1456 | + if (error != -EPROBE_DEFER) |
---|
1466 | 1457 | dev_err(&client->dev, |
---|
1467 | 1458 | "Failed to get gpio: %d\n", error); |
---|
1468 | 1459 | return error; |
---|