aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorMatjaz Hegedic <[email protected]>2017-03-09 00:31:14 +0100
committerJiri Kosina <[email protected]>2017-03-30 11:16:53 +0200
commit0485b1ec280cb9b2b6ed6e44e999294b4c698182 (patch)
treee86b1c61d5097beed35419813bef3058f84b6791 /lib/memory-notifier-error-inject.c
parenta93913e1496d6103ec0b76d8397fc04ece55f570 (diff)
HID: asus: ignore declared dummy usages
Keyboards handled by hid-asus declare special key functions using a vendor-specific page, however, alongside legitimate key functions, dummy usages with seemingly arbitrary values are also declared and can lead to keyboards being detected as pointer devices by some software (such as X.org). In addition, for the I2C keyboard volume controls are separately declared in a Consumer Usage page, with the same dummy usage problem. The fix in 1989dada7ce0 ("HID: input: ignore System Control application usages if not System Controls") does not mitigate the problem described above, therefore dummy usages need to be ignored in the driver itself. This fix properly ignores dummy usages and introduces a quirk for custom handling of the Consumer Usages on the I2C keyboard. Signed-off-by: Matjaz Hegedic <[email protected]> Reviewed-by: Benjamin Tissoires <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions