hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/drivers/hid/hid-topseed.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * HID driver for TopSeed Cyberlink remote
34 *
....@@ -12,10 +13,6 @@
1213 */
1314
1415 /*
15
- * This program is free software; you can redistribute it and/or modify it
16
- * under the terms of the GNU General Public License as published by the Free
17
- * Software Foundation; either version 2 of the License, or (at your option)
18
- * any later version.
1916 */
2017
2118 #include <linux/device.h>
....@@ -34,7 +31,9 @@
3431 return 0;
3532
3633 switch (usage->hid & HID_USAGE) {
34
+ case 0x00c: ts_map_key_clear(KEY_WLAN); break;
3735 case 0x00d: ts_map_key_clear(KEY_MEDIA); break;
36
+ case 0x010: ts_map_key_clear(KEY_ZOOM); break;
3837 case 0x024: ts_map_key_clear(KEY_MENU); break;
3938 case 0x025: ts_map_key_clear(KEY_TV); break;
4039 case 0x027: ts_map_key_clear(KEY_MODE); break;
....@@ -67,6 +66,7 @@
6766 { HID_USB_DEVICE(USB_VENDOR_ID_BTC, USB_DEVICE_ID_BTC_EMPREX_REMOTE_2) },
6867 { HID_USB_DEVICE(USB_VENDOR_ID_TOPSEED2, USB_DEVICE_ID_TOPSEED2_RF_COMBO) },
6968 { HID_USB_DEVICE(USB_VENDOR_ID_CHICONY, USB_DEVICE_ID_CHICONY_WIRELESS) },
69
+ { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_CHICONY, USB_DEVICE_ID_CHICONY_TOSHIBA_WT10A) },
7070 { }
7171 };
7272 MODULE_DEVICE_TABLE(hid, ts_devices);