wacom_wac.c (2612e3bbc0386368a850140a6c9b990cd496a5ec) wacom_wac.c (9ac6678b95b0dd9458a7a6869f46e51cd55a1d84)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * USB Wacom tablet support - Wacom specific code
4 */
5
6#include "wacom_wac.h"
7#include "wacom.h"
8#include <linux/input/mt.h>

--- 1120 unchanged lines hidden (view full) ---

1129 index = i;
1130 break;
1131 }
1132 }
1133
1134 if (index < 0 || !remote->remotes[index].registered)
1135 goto out;
1136
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * USB Wacom tablet support - Wacom specific code
4 */
5
6#include "wacom_wac.h"
7#include "wacom.h"
8#include <linux/input/mt.h>

--- 1120 unchanged lines hidden (view full) ---

1129 index = i;
1130 break;
1131 }
1132 }
1133
1134 if (index < 0 || !remote->remotes[index].registered)
1135 goto out;
1136
1137 remote->remotes[i].active_time = ktime_get();
1137 input = remote->remotes[index].input;
1138
1139 input_report_key(input, BTN_0, (data[9] & 0x01));
1140 input_report_key(input, BTN_1, (data[9] & 0x02));
1141 input_report_key(input, BTN_2, (data[9] & 0x04));
1142 input_report_key(input, BTN_3, (data[9] & 0x08));
1143 input_report_key(input, BTN_4, (data[9] & 0x10));
1144 input_report_key(input, BTN_5, (data[9] & 0x20));

--- 3950 unchanged lines hidden ---
1138 input = remote->remotes[index].input;
1139
1140 input_report_key(input, BTN_0, (data[9] & 0x01));
1141 input_report_key(input, BTN_1, (data[9] & 0x02));
1142 input_report_key(input, BTN_2, (data[9] & 0x04));
1143 input_report_key(input, BTN_3, (data[9] & 0x08));
1144 input_report_key(input, BTN_4, (data[9] & 0x10));
1145 input_report_key(input, BTN_5, (data[9] & 0x20));

--- 3950 unchanged lines hidden ---