linux-sg2042/drivers
Ingo Ruhnke f8e86d0546 HID: fix incorrect handling of devices with high button count
Button names for USB gamepads are currently assigned incorrectly, as the evdev
code assigned to buttons is "BTN_GAMEPAD + code", which on devices with more
then 16 buttons bleeds over into button names reserved for graphic tablets
(BTN_TOOL_PEN, etc.). This causes problems further down the line as the device
are now no longer detected as joystick. This patch fixes that by assigning
buttons outside the range to BTN_TRIGGER_HAPPY (as is already the case for USB
joysticks).

Furthermore this patch corrects the assignment to BTN_TRIGGER_HAPPY, as
currently the first button over 16 is assigned to BTN_TRIGGER_HAPPY17 (i.e.
BTN_TRIGGER_HAPPY+0x10) not BTN_TRIGGER_HAPPY.

Signed-off-by: Ingo Ruhnke <grumbel@gmail.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2012-10-31 16:03:32 +01:00
..
accessibility
acpi PCI changes for the 3.7 merge window: 2012-10-01 12:05:36 -07:00
amba
ata ahci: Add identifiers for ASM106x devices 2012-09-13 00:24:29 -04:00
atm
auxdisplay
base Driver core merge for 3.7-rc1 2012-10-01 12:10:44 -07:00
bcma
block PCI changes for the 3.7 merge window: 2012-10-01 12:05:36 -07:00
bluetooth
cdrom
char char/misc driver merge for 3.7-rc1 2012-10-01 12:09:59 -07:00
clk The common clk framework changes for 3.7 are dominated by ARM platform 2012-10-01 12:09:04 -07:00
clocksource arm64: Generic timers support 2012-09-17 13:42:20 +01:00
connector
cpufreq Merge branch 'for-3.6-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq 2012-09-19 11:00:07 -07:00
cpuidle
crypto Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2012-09-12 07:14:17 +08:00
dca
devfreq
dio
dma Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2012-10-01 09:06:36 -07:00
edac sb_edac: Avoid overflow errors at memory size calculation 2012-09-25 07:38:20 -03:00
eisa
extcon Driver core merge for 3.7-rc1 2012-10-01 12:10:44 -07:00
firewire
firmware firmware: Add missing attributes to EFI variable attribute print out from sysfs 2012-09-10 16:40:30 -07:00
gpio gpio-lpc32xx: Fix value handling of gpio_direction_output() 2012-09-24 21:56:01 +02:00
gpu PCI changes for the 3.7 merge window: 2012-10-01 12:05:36 -07:00
hid HID: fix incorrect handling of devices with high button count 2012-10-31 16:03:32 +01:00
hsi
hv Drivers: hv: kvp: Copy the address family information 2012-09-05 12:12:38 -07:00
hwmon hwmon: (fam15h_power) Tweak runavg_range on resume 2012-09-23 20:54:09 +02:00
hwspinlock hwspinlock/core: move the dereference below the NULL test 2012-09-10 13:19:25 +03:00
i2c Merge branch 'i2c-embedded/for-current' of git://git.pengutronix.de/git/wsa/linux 2012-09-14 17:55:57 -07:00
ide
idle
ieee802154
iio iio: adc: add new lp8788 adc driver 2012-09-22 10:29:19 +01:00
infiniband PCI changes for the 3.7 merge window: 2012-10-01 12:05:36 -07:00
input Merge branches 'from-henrik', 'hidraw', 'logitech', 'picolcd', 'ps3', 'uclogic', 'wacom' and 'wiimote' into for-linus 2012-10-01 14:36:26 +02:00
iommu PCI changes for the 3.7 merge window: 2012-10-01 12:05:36 -07:00
isdn mISDN: Fix wrong usage of flush_work_sync while holding locks 2012-09-13 14:58:54 -04:00
leds
lguest lguest, x86: handle guest TS bit for lazy/non-lazy fpu host models 2012-09-18 15:52:09 -07:00
macintosh
md A few fixes for problems discovered during the 3.6 cycle. 2012-09-28 10:00:01 -07:00
media Merge commit 'v3.6-rc5' into next 2012-09-13 08:41:01 -06:00
memory memory: tegra{20,30}-mc: Fix reading incorrect register in mc_readl() 2012-09-26 14:04:09 -07:00
memstick
message
mfd The common clk framework changes for 3.7 are dominated by ARM platform 2012-10-01 12:09:04 -07:00
misc drivers/misc/lis3lv02d/lis3lv02d_i2c.c: add lis3lv02d device tree init 2012-09-26 14:18:48 -07:00
mmc Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2012-10-01 09:06:36 -07:00
mtd mtdchar: fix offset overflow detection 2012-09-28 12:13:46 -07:00
net PCI changes for the 3.7 merge window: 2012-10-01 12:05:36 -07:00
nfc
nubus
of
oprofile
parisc
parport
pci PCI changes for the 3.7 merge window: 2012-10-01 12:05:36 -07:00
pcmcia
pinctrl
platform thinkpad_acpi: buffer overflow in fan_get_status() 2012-09-13 16:46:31 -04:00
pnp
power power: battery: Generic battery driver using IIO 2012-09-22 10:40:23 +01:00
pps
ps3
ptp
pwm pwm: pwm-tiehrpwm: Fix conflicting channel period setting 2012-09-10 17:04:38 +02:00
rapidio Merge commit 'v3.6-rc5' into next 2012-09-13 08:41:01 -06:00
regulator Merge remote-tracking branches 'regulator/topic/core', 'regulator/topic/bypass', 'regulator/topic/tol', 'regulator/topic/drivers' and 'regulator/topic/tps6586x' into regulator-next 2012-09-28 14:45:07 +01:00
remoteproc
rpmsg rpmsg: fix dma_free_coherent dev parameter 2012-09-12 12:03:57 +03:00
rtc drivers/rtc/rtc-twl.c: ensure all interrupts are disabled during probe 2012-09-17 15:00:38 -07:00
s390 s390/dasd: check count address during online setting 2012-09-26 15:45:26 +02:00
sbus
scsi PCI changes for the 3.7 merge window: 2012-10-01 12:05:36 -07:00
sfi
sh sh: pfc: Fix up GPIO mux type reconfig case. 2012-09-25 11:51:05 +09:00
sn
spi Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2012-10-01 09:06:36 -07:00
ssb
staging Staging tree update for 3.7-rc1 2012-10-01 12:11:39 -07:00
target Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2012-10-01 09:06:36 -07:00
tc
thermal
tty PCI changes for the 3.7 merge window: 2012-10-01 12:05:36 -07:00
uio
usb USB: Fix race condition when removing host controllers 2012-09-27 09:17:49 -07:00
uwb
vfio vfio: Fix virqfd release race 2012-09-21 10:48:28 -06:00
vhost
video Merge branch 'x86-efi-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2012-10-01 11:08:12 -07:00
virt
virtio
vlynq
vme vme: vme_ca91cx42.c: use list_for_each_safe() when delete list items 2012-09-06 13:29:11 -07:00
w1 char/misc driver merge for 3.7-rc1 2012-10-01 12:09:59 -07:00
watchdog watchdog: move the dereference below the NULL test 2012-09-10 17:33:17 +02:00
xen PCI changes for the 3.7 merge window: 2012-10-01 12:05:36 -07:00
zorro
Kconfig
Makefile