License cleanup: add SPDX GPL-2.0 license identifier to files with no license
Many source files in the tree are missing licensing information, which
makes it harder for compliance tools to determine the correct license.
By default all files without license information are under the default
license of the kernel, which is GPL version 2.
Update the files which contain no license information with the 'GPL-2.0'
SPDX license identifier. The SPDX identifier is a legally binding
shorthand, which can be used instead of the full boiler plate text.
This patch is based on work done by Thomas Gleixner and Kate Stewart and
Philippe Ombredanne.
How this work was done:
Patches were generated and checked against linux-4.14-rc6 for a subset of
the use cases:
- file had no licensing information it it.
- file was a */uapi/* one with no licensing information in it,
- file was a */uapi/* one with existing licensing information,
Further patches will be generated in subsequent months to fix up cases
where non-standard license headers were used, and references to license
had to be inferred by heuristics based on keywords.
The analysis to determine which SPDX License Identifier to be applied to
a file was done in a spreadsheet of side by side results from of the
output of two independent scanners (ScanCode & Windriver) producing SPDX
tag:value files created by Philippe Ombredanne. Philippe prepared the
base worksheet, and did an initial spot review of a few 1000 files.
The 4.13 kernel was the starting point of the analysis with 60,537 files
assessed. Kate Stewart did a file by file comparison of the scanner
results in the spreadsheet to determine which SPDX license identifier(s)
to be applied to the file. She confirmed any determination that was not
immediately clear with lawyers working with the Linux Foundation.
Criteria used to select files for SPDX license identifier tagging was:
- Files considered eligible had to be source code files.
- Make and config files were included as candidates if they contained >5
lines of source
- File already had some variant of a license header in it (even if <5
lines).
All documentation files were explicitly excluded.
The following heuristics were used to determine which SPDX license
identifiers to apply.
- when both scanners couldn't find any license traces, file was
considered to have no license information in it, and the top level
COPYING file license applied.
For non */uapi/* files that summary was:
SPDX license identifier # files
---------------------------------------------------|-------
GPL-2.0 11139
and resulted in the first patch in this series.
If that file was a */uapi/* path one, it was "GPL-2.0 WITH
Linux-syscall-note" otherwise it was "GPL-2.0". Results of that was:
SPDX license identifier # files
---------------------------------------------------|-------
GPL-2.0 WITH Linux-syscall-note 930
and resulted in the second patch in this series.
- if a file had some form of licensing information in it, and was one
of the */uapi/* ones, it was denoted with the Linux-syscall-note if
any GPL family license was found in the file or had no licensing in
it (per prior point). Results summary:
SPDX license identifier # files
---------------------------------------------------|------
GPL-2.0 WITH Linux-syscall-note 270
GPL-2.0+ WITH Linux-syscall-note 169
((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause) 21
((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 17
LGPL-2.1+ WITH Linux-syscall-note 15
GPL-1.0+ WITH Linux-syscall-note 14
((GPL-2.0+ WITH Linux-syscall-note) OR BSD-3-Clause) 5
LGPL-2.0+ WITH Linux-syscall-note 4
LGPL-2.1 WITH Linux-syscall-note 3
((GPL-2.0 WITH Linux-syscall-note) OR MIT) 3
((GPL-2.0 WITH Linux-syscall-note) AND MIT) 1
and that resulted in the third patch in this series.
- when the two scanners agreed on the detected license(s), that became
the concluded license(s).
- when there was disagreement between the two scanners (one detected a
license but the other didn't, or they both detected different
licenses) a manual inspection of the file occurred.
- In most cases a manual inspection of the information in the file
resulted in a clear resolution of the license that should apply (and
which scanner probably needed to revisit its heuristics).
- When it was not immediately clear, the license identifier was
confirmed with lawyers working with the Linux Foundation.
- If there was any question as to the appropriate license identifier,
the file was flagged for further research and to be revisited later
in time.
In total, over 70 hours of logged manual review was done on the
spreadsheet to determine the SPDX license identifiers to apply to the
source files by Kate, Philippe, Thomas and, in some cases, confirmation
by lawyers working with the Linux Foundation.
Kate also obtained a third independent scan of the 4.13 code base from
FOSSology, and compared selected files where the other two scanners
disagreed against that SPDX file, to see if there was new insights. The
Windriver scanner is based on an older version of FOSSology in part, so
they are related.
Thomas did random spot checks in about 500 files from the spreadsheets
for the uapi headers and agreed with SPDX license identifier in the
files he inspected. For the non-uapi files Thomas did random spot checks
in about 15000 files.
In initial set of patches against 4.14-rc6, 3 files were found to have
copy/paste license identifier errors, and have been fixed to reflect the
correct identifier.
Additionally Philippe spent 10 hours this week doing a detailed manual
inspection and review of the 12,461 patched files from the initial patch
version early this week with:
- a full scancode scan run, collecting the matched texts, detected
license ids and scores
- reviewing anything where there was a license detected (about 500+
files) to ensure that the applied SPDX license was correct
- reviewing anything where there was no detection but the patch license
was not GPL-2.0 WITH Linux-syscall-note to ensure that the applied
SPDX license was correct
This produced a worksheet with 20 files needing minor correction. This
worksheet was then exported into 3 different .csv files for the
different types of files to be modified.
These .csv files were then reviewed by Greg. Thomas wrote a script to
parse the csv files and add the proper SPDX tag to the file, in the
format that the file expected. This script was further refined by Greg
based on the output to detect more types of files automatically and to
distinguish between header and source .c files (which need different
comment types.) Finally Greg ran the script using the .csv files to
generate the patches.
Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org>
Reviewed-by: Philippe Ombredanne <pombredanne@nexb.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-01 22:07:57 +08:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2006-12-09 01:41:30 +08:00
|
|
|
#
|
|
|
|
# Makefile for the HID driver
|
|
|
|
#
|
2017-11-20 18:48:41 +08:00
|
|
|
hid-y := hid-core.o hid-input.o hid-quirks.o
|
2015-01-21 21:07:10 +08:00
|
|
|
hid-$(CONFIG_DEBUG_FS) += hid-debug.o
|
2009-06-12 21:20:55 +08:00
|
|
|
|
2022-11-03 23:57:44 +08:00
|
|
|
obj-$(CONFIG_HID_BPF) += bpf/
|
|
|
|
|
2007-01-25 18:43:31 +08:00
|
|
|
obj-$(CONFIG_HID) += hid.o
|
2012-06-10 21:16:13 +08:00
|
|
|
obj-$(CONFIG_UHID) += uhid.o
|
2007-05-14 15:57:40 +08:00
|
|
|
|
2012-04-23 18:07:07 +08:00
|
|
|
obj-$(CONFIG_HID_GENERIC) += hid-generic.o
|
|
|
|
|
2007-05-14 15:57:40 +08:00
|
|
|
hid-$(CONFIG_HIDRAW) += hidraw.o
|
2007-01-25 18:43:31 +08:00
|
|
|
|
2010-11-18 17:42:30 +08:00
|
|
|
hid-logitech-y := hid-lg.o
|
2015-01-21 21:07:10 +08:00
|
|
|
hid-logitech-$(CONFIG_LOGITECH_FF) += hid-lgff.o
|
|
|
|
hid-logitech-$(CONFIG_LOGIRUMBLEPAD2_FF) += hid-lg2ff.o
|
|
|
|
hid-logitech-$(CONFIG_LOGIG940_FF) += hid-lg3ff.o
|
|
|
|
hid-logitech-$(CONFIG_LOGIWHEELS_FF) += hid-lg4ff.o
|
2008-07-05 05:06:45 +08:00
|
|
|
|
HID: wiimote: add sub-device module infrastructure
To avoid loading all sub-device drivers for every Wii Remote, even though
the required hardware might not be available, we introduce a module layer.
The module layer specifies which sub-devices are available on each
device-type. After device detection, we only load the modules for the
detected device. If module loading fails, we unload everything and mark
the device as WIIMOTE_DEV_UNKNOWN. As long as a device is marked as
"unknown", no sub-devices will be used and the device is considered
unsupported.
All the different sub-devices, including KEYS, RUMBLE, BATTERY, LEDS,
ACCELEROMETER, IR and more will be ported in follow-up patches to the new
module layer.
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2013-05-06 05:12:51 +08:00
|
|
|
hid-wiimote-y := hid-wiimote-core.o hid-wiimote-modules.o
|
2015-01-21 21:07:10 +08:00
|
|
|
hid-wiimote-$(CONFIG_DEBUG_FS) += hid-wiimote-debug.o
|
2011-11-17 21:11:58 +08:00
|
|
|
|
2008-06-24 05:31:09 +08:00
|
|
|
obj-$(CONFIG_HID_A4TECH) += hid-a4tech.o
|
2017-02-14 22:17:56 +08:00
|
|
|
obj-$(CONFIG_HID_ACCUTOUCH) += hid-accutouch.o
|
2016-06-16 17:45:57 +08:00
|
|
|
obj-$(CONFIG_HID_ALPS) += hid-alps.o
|
2011-03-11 16:27:34 +08:00
|
|
|
obj-$(CONFIG_HID_ACRUX) += hid-axff.o
|
2008-06-19 05:36:49 +08:00
|
|
|
obj-$(CONFIG_HID_APPLE) += hid-apple.o
|
2013-04-18 00:15:15 +08:00
|
|
|
obj-$(CONFIG_HID_APPLEIR) += hid-appleir.o
|
2019-07-02 16:39:31 +08:00
|
|
|
obj-$(CONFIG_HID_CREATIVE_SB0540) += hid-creative-sb0540.o
|
HID: Asus X205TA keyboard driver
Asus X205TA built-in keyboard contains wrong
logical maximum value in report descriptor.
0x05, 0x01, // Usage Page (Generic Desktop)
0x09, 0x06, // Usage (Keyboard)
0xa1, 0x01, // Collection (Application)
0x85, 0x01, // Report ID (1)
0x05, 0x07, // Usage Page (Keyboard/Keypad)
0x19, 0xe0, // Usage Minimum (224)
0x29, 0xe7, // Usage Maximum (231)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x01, // Logical Maximum (1)
0x75, 0x01, // Report Size (1)
0x95, 0x08, // Report Count (8)
0x81, 0x02, // Input (Data,Array,Abs)
0x95, 0x01, // Report Count (1)
0x75, 0x08, // Report Size (8)
0x81, 0x03, // Input (Const,Var,Abs)
0x95, 0x05, // Report Count (5)
0x75, 0x01, // Report Size (1)
0x05, 0x08, // Usage (LED)
0x19, 0x01, // Usage Minimum (1)
0x29, 0x05, // Usage Maximum (5)
0x91, 0x02, // Output (Data,Var,Abs)
0x95, 0x01, // Report Count (1)
0x75, 0x03, // Report Size (3)
0x91, 0x03, // Output (Const,Var,Abs)
0x95, 0x06, // Report Count (6)
0x75, 0x08, // Report Size (8)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x65, // Logical Maximum (101) * too small *
0x05, 0x07, // Usage Page (Keyboard/Keypad)
0x19, 0x00, // Usage Minimum (0)
0x29, 0xdd, // Usage Maximum (221)
0x81, 0x00, // Input(Data,Array,Abs)
In Asus X205TA japanese keyboard model,there are language
specific keys over usage id 101.
This patch correct wrong logical maximum in report
descriptor.
Signed-off-by: Yusuke Fujimaki <usk.fujimaki@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2016-03-21 15:18:42 +08:00
|
|
|
obj-$(CONFIG_HID_ASUS) += hid-asus.o
|
2015-04-28 19:11:20 +08:00
|
|
|
obj-$(CONFIG_HID_AUREAL) += hid-aureal.o
|
2008-06-25 05:24:57 +08:00
|
|
|
obj-$(CONFIG_HID_BELKIN) += hid-belkin.o
|
2014-11-26 18:21:03 +08:00
|
|
|
obj-$(CONFIG_HID_BETOP_FF) += hid-betopff.o
|
2018-08-23 23:03:38 +08:00
|
|
|
obj-$(CONFIG_HID_BIGBEN_FF) += hid-bigbenff.o
|
2008-06-25 02:42:25 +08:00
|
|
|
obj-$(CONFIG_HID_CHERRY) += hid-cherry.o
|
2008-06-25 04:48:52 +08:00
|
|
|
obj-$(CONFIG_HID_CHICONY) += hid-chicony.o
|
2016-01-22 11:59:43 +08:00
|
|
|
obj-$(CONFIG_HID_CMEDIA) += hid-cmedia.o
|
2015-09-30 21:14:20 +08:00
|
|
|
obj-$(CONFIG_HID_CORSAIR) += hid-corsair.o
|
2018-07-18 05:35:37 +08:00
|
|
|
obj-$(CONFIG_HID_COUGAR) += hid-cougar.o
|
2014-02-05 02:42:48 +08:00
|
|
|
obj-$(CONFIG_HID_CP2112) += hid-cp2112.o
|
2008-06-24 04:54:08 +08:00
|
|
|
obj-$(CONFIG_HID_CYPRESS) += hid-cypress.o
|
2011-01-28 19:50:51 +08:00
|
|
|
obj-$(CONFIG_HID_DRAGONRISE) += hid-dr.o
|
2010-11-02 03:13:37 +08:00
|
|
|
obj-$(CONFIG_HID_EMS_FF) += hid-emsff.o
|
2018-01-14 07:33:49 +08:00
|
|
|
obj-$(CONFIG_HID_ELAN) += hid-elan.o
|
2010-06-29 00:54:25 +08:00
|
|
|
obj-$(CONFIG_HID_ELECOM) += hid-elecom.o
|
2013-05-07 17:40:58 +08:00
|
|
|
obj-$(CONFIG_HID_ELO) += hid-elo.o
|
2023-01-26 05:15:10 +08:00
|
|
|
obj-$(CONFIG_HID_EVISION) += hid-evision.o
|
2008-06-25 03:11:21 +08:00
|
|
|
obj-$(CONFIG_HID_EZKEY) += hid-ezkey.o
|
2021-02-20 00:36:44 +08:00
|
|
|
obj-$(CONFIG_HID_FT260) += hid-ft260.o
|
2015-08-13 23:11:27 +08:00
|
|
|
obj-$(CONFIG_HID_GEMBIRD) += hid-gembird.o
|
2015-10-26 16:15:58 +08:00
|
|
|
obj-$(CONFIG_HID_GFRM) += hid-gfrm.o
|
2020-03-13 10:12:38 +08:00
|
|
|
obj-$(CONFIG_HID_GLORIOUS) += hid-glorious.o
|
2022-03-15 12:04:39 +08:00
|
|
|
obj-$(CONFIG_HID_VIVALDI_COMMON) += hid-vivaldi-common.o
|
2018-03-15 09:28:25 +08:00
|
|
|
obj-$(CONFIG_HID_GOOGLE_HAMMER) += hid-google-hammer.o
|
2023-07-17 04:48:34 +08:00
|
|
|
obj-$(CONFIG_HID_GOOGLE_STADIA_FF) += hid-google-stadiaff.o
|
2020-09-10 06:03:04 +08:00
|
|
|
obj-$(CONFIG_HID_VIVALDI) += hid-vivaldi.o
|
2014-06-19 00:05:02 +08:00
|
|
|
obj-$(CONFIG_HID_GT683R) += hid-gt683r.o
|
2008-07-25 05:35:13 +08:00
|
|
|
obj-$(CONFIG_HID_GYRATION) += hid-gyration.o
|
2012-07-06 23:05:04 +08:00
|
|
|
obj-$(CONFIG_HID_HOLTEK) += hid-holtek-kbd.o
|
2013-05-21 07:31:08 +08:00
|
|
|
obj-$(CONFIG_HID_HOLTEK) += hid-holtek-mouse.o
|
2011-06-27 05:07:31 +08:00
|
|
|
obj-$(CONFIG_HID_HOLTEK) += hid-holtekff.o
|
2011-11-23 05:52:15 +08:00
|
|
|
obj-$(CONFIG_HID_HYPERV_MOUSE) += hid-hyperv.o
|
2012-10-31 19:10:10 +08:00
|
|
|
obj-$(CONFIG_HID_ICADE) += hid-icade.o
|
2017-05-10 23:12:53 +08:00
|
|
|
obj-$(CONFIG_HID_ITE) += hid-ite.o
|
2017-10-04 18:31:22 +08:00
|
|
|
obj-$(CONFIG_HID_JABRA) += hid-jabra.o
|
2009-03-04 23:09:40 +08:00
|
|
|
obj-$(CONFIG_HID_KENSINGTON) += hid-kensington.o
|
2011-02-17 22:12:45 +08:00
|
|
|
obj-$(CONFIG_HID_KEYTOUCH) += hid-keytouch.o
|
2009-03-11 18:43:27 +08:00
|
|
|
obj-$(CONFIG_HID_KYE) += hid-kye.o
|
2015-04-28 19:11:20 +08:00
|
|
|
obj-$(CONFIG_HID_LCPOWER) += hid-lcpower.o
|
2014-07-24 06:30:45 +08:00
|
|
|
obj-$(CONFIG_HID_LENOVO) += hid-lenovo.o
|
2021-12-13 05:23:33 +08:00
|
|
|
obj-$(CONFIG_HID_LETSKETCH) += hid-letsketch.o
|
2008-05-16 17:49:19 +08:00
|
|
|
obj-$(CONFIG_HID_LOGITECH) += hid-logitech.o
|
2019-08-28 20:41:25 +08:00
|
|
|
obj-$(CONFIG_HID_LOGITECH) += hid-lg-g15.o
|
2011-09-15 17:34:49 +08:00
|
|
|
obj-$(CONFIG_HID_LOGITECH_DJ) += hid-logitech-dj.o
|
2014-10-01 01:18:27 +08:00
|
|
|
obj-$(CONFIG_HID_LOGITECH_HIDPP) += hid-logitech-hidpp.o
|
2019-04-03 11:18:17 +08:00
|
|
|
obj-$(CONFIG_HID_MACALLY) += hid-macally.o
|
2015-04-28 19:11:20 +08:00
|
|
|
obj-$(CONFIG_HID_MAGICMOUSE) += hid-magicmouse.o
|
2019-01-15 01:50:07 +08:00
|
|
|
obj-$(CONFIG_HID_MALTRON) += hid-maltron.o
|
2023-09-22 00:49:28 +08:00
|
|
|
obj-$(CONFIG_HID_MCP2200) += hid-mcp2200.o
|
2020-01-28 12:18:57 +08:00
|
|
|
obj-$(CONFIG_HID_MCP2221) += hid-mcp2221.o
|
2016-11-04 02:47:42 +08:00
|
|
|
obj-$(CONFIG_HID_MAYFLASH) += hid-mf.o
|
2022-04-21 10:40:41 +08:00
|
|
|
obj-$(CONFIG_HID_MEGAWORLD_FF) += hid-megaworld.o
|
2008-06-21 03:26:11 +08:00
|
|
|
obj-$(CONFIG_HID_MICROSOFT) += hid-microsoft.o
|
2008-06-25 06:07:50 +08:00
|
|
|
obj-$(CONFIG_HID_MONTEREY) += hid-monterey.o
|
2011-01-08 06:45:50 +08:00
|
|
|
obj-$(CONFIG_HID_MULTITOUCH) += hid-multitouch.o
|
2021-09-12 01:36:24 +08:00
|
|
|
obj-$(CONFIG_HID_NINTENDO) += hid-nintendo.o
|
2017-02-02 03:54:57 +08:00
|
|
|
obj-$(CONFIG_HID_NTI) += hid-nti.o
|
2008-11-19 22:54:46 +08:00
|
|
|
obj-$(CONFIG_HID_NTRIG) += hid-ntrig.o
|
2023-06-08 22:34:50 +08:00
|
|
|
obj-$(CONFIG_HID_NVIDIA_SHIELD) += hid-nvidia-shield.o
|
2010-01-21 22:36:52 +08:00
|
|
|
obj-$(CONFIG_HID_ORTEK) += hid-ortek.o
|
2010-05-12 21:18:59 +08:00
|
|
|
obj-$(CONFIG_HID_PRODIKEYS) += hid-prodikeys.o
|
2008-09-19 01:43:32 +08:00
|
|
|
obj-$(CONFIG_HID_PANTHERLORD) += hid-pl.o
|
2014-09-03 16:33:53 +08:00
|
|
|
obj-$(CONFIG_HID_PENMOUNT) += hid-penmount.o
|
2008-06-25 05:46:21 +08:00
|
|
|
obj-$(CONFIG_HID_PETALYNX) += hid-petalynx.o
|
2010-03-31 04:33:50 +08:00
|
|
|
obj-$(CONFIG_HID_PICOLCD) += hid-picolcd.o
|
2012-07-31 03:38:28 +08:00
|
|
|
hid-picolcd-y += hid-picolcd_core.o
|
2015-01-21 21:07:10 +08:00
|
|
|
hid-picolcd-$(CONFIG_HID_PICOLCD_FB) += hid-picolcd_fb.o
|
|
|
|
hid-picolcd-$(CONFIG_HID_PICOLCD_BACKLIGHT) += hid-picolcd_backlight.o
|
|
|
|
hid-picolcd-$(CONFIG_HID_PICOLCD_LCD) += hid-picolcd_lcd.o
|
|
|
|
hid-picolcd-$(CONFIG_HID_PICOLCD_LEDS) += hid-picolcd_leds.o
|
|
|
|
hid-picolcd-$(CONFIG_HID_PICOLCD_CIR) += hid-picolcd_cir.o
|
|
|
|
hid-picolcd-$(CONFIG_DEBUG_FS) += hid-picolcd_debugfs.o
|
2012-07-31 03:38:28 +08:00
|
|
|
|
2014-11-01 08:34:42 +08:00
|
|
|
obj-$(CONFIG_HID_PLANTRONICS) += hid-plantronics.o
|
2021-02-08 05:48:56 +08:00
|
|
|
obj-$(CONFIG_HID_PLAYSTATION) += hid-playstation.o
|
2011-10-15 08:18:54 +08:00
|
|
|
obj-$(CONFIG_HID_PRIMAX) += hid-primax.o
|
2022-09-15 02:43:45 +08:00
|
|
|
obj-$(CONFIG_HID_PXRC) += hid-pxrc.o
|
2022-01-16 23:34:25 +08:00
|
|
|
obj-$(CONFIG_HID_RAZER) += hid-razer.o
|
2018-04-17 05:38:24 +08:00
|
|
|
obj-$(CONFIG_HID_REDRAGON) += hid-redragon.o
|
2017-06-21 00:13:37 +08:00
|
|
|
obj-$(CONFIG_HID_RETRODE) += hid-retrode.o
|
2011-12-30 00:20:14 +08:00
|
|
|
obj-$(CONFIG_HID_ROCCAT) += hid-roccat.o hid-roccat-common.o \
|
|
|
|
hid-roccat-arvo.o hid-roccat-isku.o hid-roccat-kone.o \
|
2013-03-10 19:32:44 +08:00
|
|
|
hid-roccat-koneplus.o hid-roccat-konepure.o hid-roccat-kovaplus.o \
|
2013-10-29 01:52:07 +08:00
|
|
|
hid-roccat-lua.o hid-roccat-pyra.o hid-roccat-ryos.o hid-roccat-savu.o
|
2014-04-08 01:39:33 +08:00
|
|
|
obj-$(CONFIG_HID_RMI) += hid-rmi.o
|
2012-02-22 09:10:06 +08:00
|
|
|
obj-$(CONFIG_HID_SAITEK) += hid-saitek.o
|
2008-06-26 04:31:48 +08:00
|
|
|
obj-$(CONFIG_HID_SAMSUNG) += hid-samsung.o
|
HID: semitek: new driver for GK6X series keyboards
A number of USB keyboards, using the Semitek firmware, are capable of
handling arbitrary N-key rollover, but due to a buggy report
descriptor, keys beyond the sixth cannot be detected by the generic
HID driver.
There are numerous hardware variants sold by several vendors, mostly
using generic names like "GK61" for the 61-key version. These
keyboards are sometimes known collectively as the "GK6X" series.
The keyboard has three USB interfaces. Interface 0 uses the standard
HID boot protocol, limited to eight modifier keys and six normal keys;
interface 2 uses a custom report format that permits any number of
keys. If more than six keys are pressed simultaneously, the first six
are reported via interface 0 while subsequent keys are reported via
interface 2.
(Interface 1 uses a custom protocol for reprogramming the keyboard;
this can be controlled through userspace tools and is not of concern
for the present driver.)
The report descriptor for interface 2, however, is incorrect (for
report ID 0x04, the input field is marked as "array" rather than
"variable".) The descriptor appears to be correct in other respects,
so we simply replace the incorrect byte before parsing the descriptor.
Signed-off-by: Benjamin Moody <bmoody@member.fsf.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2021-02-08 02:47:04 +08:00
|
|
|
obj-$(CONFIG_HID_SEMITEK) += hid-semitek.o
|
2021-12-30 23:27:56 +08:00
|
|
|
obj-$(CONFIG_HID_SIGMAMICRO) += hid-sigmamicro.o
|
2009-05-13 16:54:38 +08:00
|
|
|
obj-$(CONFIG_HID_SMARTJOYPLUS) += hid-sjoy.o
|
2008-06-26 05:47:04 +08:00
|
|
|
obj-$(CONFIG_HID_SONY) += hid-sony.o
|
2011-05-28 00:40:29 +08:00
|
|
|
obj-$(CONFIG_HID_SPEEDLINK) += hid-speedlink.o
|
2018-04-16 20:27:02 +08:00
|
|
|
obj-$(CONFIG_HID_STEAM) += hid-steam.o
|
2013-01-31 23:50:24 +08:00
|
|
|
obj-$(CONFIG_HID_STEELSERIES) += hid-steelseries.o
|
2008-06-24 03:56:07 +08:00
|
|
|
obj-$(CONFIG_HID_SUNPLUS) += hid-sunplus.o
|
2009-05-15 21:46:44 +08:00
|
|
|
obj-$(CONFIG_HID_GREENASIA) += hid-gaff.o
|
2021-01-31 17:00:45 +08:00
|
|
|
obj-$(CONFIG_HID_THRUSTMASTER) += hid-tmff.o hid-thrustmaster.o
|
HID: add support for tivo slide remote
This patch finishes off adding full support for the TiVo Slide remote,
which is a mostly pure HID device from the perspective of the kernel.
There are a few mappings that use a vendor-specific usage page, and a
few keys in the consumer usage page that I think make sense to remap
slightly, to better fit their key labels' intended use. Doing this in a
stand-alone hid-tivo.c makes the modifications only matter for this
specific device.
What's actually connected to the computer is a Broadcom-made usb dongle,
which has an embedded hub, bluetooth adapter, mouse and keyboard
devices. You pair with the dongle, then the remote sends data that its
converted into HID on the keyboard interface (the mouse interface
doesn't do anything interesting, so far as I can tell).
lsusb for this device:
Bus 004 Device 005: ID 0a5c:2190 Broadcom Corp.
Bus 004 Device 004: ID 0a5c:4503 Broadcom Corp.
Bus 004 Device 003: ID 150a:1201
Bus 004 Device 002: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth)
Speaking of the keyboard interface, the remote actually does contain a
keyboard as well. The top slides away, revealing a reasonably functional
qwerty keyboard (not unlike many slide cell phones), thus the product
name.
CC: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2011-10-15 04:57:42 +08:00
|
|
|
obj-$(CONFIG_HID_TIVO) += hid-tivo.o
|
2009-01-04 07:36:56 +08:00
|
|
|
obj-$(CONFIG_HID_TOPSEED) += hid-topseed.o
|
2022-09-11 08:36:13 +08:00
|
|
|
obj-$(CONFIG_HID_TOPRE) += hid-topre.o
|
2009-07-13 20:19:58 +08:00
|
|
|
obj-$(CONFIG_HID_TWINHAN) += hid-twinhan.o
|
2019-04-01 20:42:00 +08:00
|
|
|
obj-$(CONFIG_HID_U2FZERO) += hid-u2fzero.o
|
2019-02-10 18:13:50 +08:00
|
|
|
hid-uclogic-objs := hid-uclogic-core.o \
|
2019-02-10 18:13:51 +08:00
|
|
|
hid-uclogic-rdesc.o \
|
|
|
|
hid-uclogic-params.o
|
2010-08-10 00:44:17 +08:00
|
|
|
obj-$(CONFIG_HID_UCLOGIC) += hid-uclogic.o
|
2016-11-15 20:02:05 +08:00
|
|
|
obj-$(CONFIG_HID_UDRAW_PS3) += hid-udraw-ps3.o
|
2016-06-18 03:20:46 +08:00
|
|
|
obj-$(CONFIG_HID_LED) += hid-led.o
|
2021-09-19 19:12:36 +08:00
|
|
|
obj-$(CONFIG_HID_XIAOMI) += hid-xiaomi.o
|
2013-07-28 01:20:02 +08:00
|
|
|
obj-$(CONFIG_HID_XINMO) += hid-xinmo.o
|
2009-05-15 21:46:44 +08:00
|
|
|
obj-$(CONFIG_HID_ZEROPLUS) += hid-zpff.o
|
2010-05-15 00:30:59 +08:00
|
|
|
obj-$(CONFIG_HID_ZYDACRON) += hid-zydacron.o
|
2019-02-10 18:13:48 +08:00
|
|
|
obj-$(CONFIG_HID_VIEWSONIC) += hid-viewsonic.o
|
2022-09-02 16:25:52 +08:00
|
|
|
obj-$(CONFIG_HID_VRC2) += hid-vrc2.o
|
2014-07-25 04:10:09 +08:00
|
|
|
|
|
|
|
wacom-objs := wacom_wac.o wacom_sys.o
|
2014-08-07 05:06:26 +08:00
|
|
|
obj-$(CONFIG_HID_WACOM) += wacom.o
|
2010-08-20 23:21:11 +08:00
|
|
|
obj-$(CONFIG_HID_WALTOP) += hid-waltop.o
|
2011-07-05 19:45:08 +08:00
|
|
|
obj-$(CONFIG_HID_WIIMOTE) += hid-wiimote.o
|
2012-09-05 20:56:00 +08:00
|
|
|
obj-$(CONFIG_HID_SENSOR_HUB) += hid-sensor-hub.o
|
2015-04-11 02:22:22 +08:00
|
|
|
obj-$(CONFIG_HID_SENSOR_CUSTOM_SENSOR) += hid-sensor-custom.o
|
2008-05-16 17:49:19 +08:00
|
|
|
|
2022-08-15 22:29:49 +08:00
|
|
|
hid-uclogic-test-objs := hid-uclogic-rdesc.o \
|
2022-08-15 22:29:50 +08:00
|
|
|
hid-uclogic-params.o \
|
2022-06-11 19:39:12 +08:00
|
|
|
hid-uclogic-rdesc-test.o
|
2022-08-15 22:29:49 +08:00
|
|
|
obj-$(CONFIG_HID_KUNIT_TEST) += hid-uclogic-test.o
|
2022-06-11 19:39:12 +08:00
|
|
|
|
2007-03-08 23:47:49 +08:00
|
|
|
obj-$(CONFIG_USB_HID) += usbhid/
|
|
|
|
obj-$(CONFIG_USB_MOUSE) += usbhid/
|
|
|
|
obj-$(CONFIG_USB_KBD) += usbhid/
|
|
|
|
|
2021-01-16 01:06:37 +08:00
|
|
|
obj-$(CONFIG_I2C_HID_CORE) += i2c-hid/
|
2016-08-07 17:25:34 +08:00
|
|
|
|
|
|
|
obj-$(CONFIG_INTEL_ISH_HID) += intel-ish-hid/
|
2019-04-02 13:47:41 +08:00
|
|
|
obj-$(INTEL_ISH_FIRMWARE_DOWNLOADER) += intel-ish-hid/
|
2020-10-10 04:01:36 +08:00
|
|
|
|
|
|
|
obj-$(CONFIG_AMD_SFH_HID) += amd-sfh-hid/
|
2021-03-11 06:53:28 +08:00
|
|
|
|
|
|
|
obj-$(CONFIG_SURFACE_HID_CORE) += surface-hid/
|