linux-sg2042/drivers/input/keyboard
Dmitry Torokhov 8679ee4204 Input: gpio-keys - fix check for disabling unsupported keys
Commit 4ea14a53d8 ("Input: gpio-keys - report
error when disabling unsupported key") tried let user know that they
attempted to disable an unsupported key, unfortunately the check is wrong
as it believes that all codes are invalid. Fix it by ensuring that keys
that we try to disable are subset of keys (or switches) that device
reports.

Fixes: 4ea14a53d8 ("Input: gpio-keys - report error when disabling unsupported key")
Reported-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
Tested-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2016-01-10 09:51:56 -08:00
..
Kconfig Input: goldfish - allow compile the driver with COMPILE_TEST 2015-10-02 11:44:16 -07:00
Makefile input: keyboard: imx: add snvs power key driver 2015-07-15 10:17:06 +08:00
adp5520-keys.c input: keyboard: drop owner assignment from platform_drivers 2014-10-20 16:20:39 +02:00
adp5588-keys.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input 2014-10-19 12:40:24 -07:00
adp5589-keys.c Input: drop owner assignment from i2c_driver 2015-07-17 16:57:00 -07:00
amikbd.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input 2014-12-17 10:06:02 -08:00
atakbd.c Input: atari - enable the 102nd key for German keyboards 2015-01-18 00:10:28 -08:00
atkbd.c Input: atkbd - document "no new force-release quirks" policy 2015-04-11 00:03:08 -07:00
bcm-keypad.c Input: add driver for Broadcom keypad controller 2015-03-02 15:16:52 -08:00
bf54x-keys.c input: keyboard: drop owner assignment from platform_drivers 2014-10-20 16:20:39 +02:00
cap11xx.c Input: cap11xx - add LED support 2015-08-16 23:22:01 -07:00
clps711x-keypad.c Input: improve usage of gpiod API 2015-06-16 17:09:14 -07:00
cros_ec_keyb.c mfd: cros_ec: Support multiple EC in a system 2015-06-15 13:18:23 +01:00
davinci_keyscan.c input: keyboard: drop owner assignment from platform_drivers 2014-10-20 16:20:39 +02:00
ep93xx_keypad.c input: keyboard: drop owner assignment from platform_drivers 2014-10-20 16:20:39 +02:00
goldfish_events.c input: keyboard: drop owner assignment from platform_drivers 2014-10-20 16:20:39 +02:00
gpio_keys.c Input: gpio-keys - fix check for disabling unsupported keys 2016-01-10 09:51:56 -08:00
gpio_keys_polled.c Input: gpio_keys_polled - add support for abs/rel axis 2015-10-14 17:15:04 -07:00
hil_kbd.c Input: hil_kbd - fix incorrect use of init_completion 2014-12-27 20:43:35 -08:00
hilkbd.c Input: remove use of __devexit 2012-11-24 00:05:38 -08:00
hpps2atkbd.h
imx_keypad.c Input: imx_keypad - remove obsolete comment 2015-09-05 11:49:33 -07:00
ipaq-micro-keys.c Input: driver for microcontroller keys on the iPaq h3xxx 2015-03-06 11:25:31 -08:00
jornada680_kbd.c input: keyboard: drop owner assignment from platform_drivers 2014-10-20 16:20:39 +02:00
jornada720_kbd.c input: keyboard: drop owner assignment from platform_drivers 2014-10-20 16:20:39 +02:00
lkkbd.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
lm8323.c Input: lm8323 - missing error check in lm8323_set_disable() 2014-12-03 15:28:26 -08:00
lm8333.c Input: drop owner assignment from i2c_driver 2015-07-17 16:57:00 -07:00
locomokbd.c Input: remove use of __devexit 2012-11-24 00:05:38 -08:00
lpc32xx-keys.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input 2014-12-17 10:06:02 -08:00
maple_keyb.c sh: maple: Support block reads and writes. 2009-02-27 16:07:32 +09:00
matrix_keypad.c Input: matrix_keypad - change name of wakeup property to "wakeup-source" 2015-07-23 15:01:22 -07:00
max7359_keypad.c Input: max7359_keypad - switch to using matrix_keypad_build_keymap() 2015-05-15 15:58:40 -07:00
mcs_touchkey.c Input: drop owner assignment from i2c_driver 2015-07-17 16:57:00 -07:00
mpr121_touchkey.c Input: drop owner assignment from i2c_driver 2015-07-17 16:57:00 -07:00
newtonkbd.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
nomadik-ske-keypad.c Input: nomadik-ske-keypad - fix a trivial typo 2015-10-22 23:31:22 -07:00
nspire-keypad.c input: keyboard: drop owner assignment from platform_drivers 2014-10-20 16:20:39 +02:00
omap-keypad.c Input: omap-keypad - remove dead check 2016-01-07 17:26:23 -08:00
omap4-keypad.c Input: omap4-keypad - fix memory leak 2015-09-28 16:41:07 -07:00
opencores-kbd.c Input: opencores-kbd - fix error handling 2014-10-28 10:32:59 -07:00
pmic8xxx-keypad.c Input: pmic8xxx-keypad - change name of wakeup property 2015-07-23 15:01:23 -07:00
pxa27x_keypad.c Input: pxa27x_keypad - remove an unneeded NULL check 2015-02-11 23:07:12 -08:00
pxa930_rotary.c input: keyboard: drop owner assignment from platform_drivers 2014-10-20 16:20:39 +02:00
qt1070.c Input: drop owner assignment from i2c_driver 2015-07-17 16:57:00 -07:00
qt2160.c Input: drop owner assignment from i2c_driver 2015-07-17 16:57:00 -07:00
samsung-keypad.c Input: samsung-keypad - change name of wakeup property 2015-07-23 17:34:02 -07:00
sh_keysc.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
snvs_pwrkey.c Input: snvs_pwrkey - remove duplicated semicolon 2015-10-26 17:28:34 -07:00
spear-keyboard.c Input: update email-id of Rajeev Kumar 2015-05-22 10:59:55 -07:00
st-keyscan.c Input: st-keyscan - fix 'defined but not used' compiler warnings 2014-07-18 10:18:55 -07:00
stmpe-keypad.c Merge branch 'next' into for-linus 2014-12-18 10:02:39 -08:00
stowaway.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
sun4i-lradc-keys.c Input: add new sun4i-lradc-keys driver 2014-12-21 18:59:21 -08:00
sunkbd.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
tc3589x-keypad.c Input: tc3589x-keypad - switch to using managed resources 2015-07-23 17:34:03 -07:00
tca6416-keypad.c Input: use dev_get_platdata() 2013-12-06 02:06:29 -08:00
tca8418_keypad.c Input: drop owner assignment from i2c_driver 2015-07-17 16:57:00 -07:00
tegra-kbc.c Input: tegra-kbc - drop use of IRQF_NO_SUSPEND flag 2015-10-26 01:39:07 -07:00
twl4030_keypad.c input: keyboard: drop owner assignment from platform_drivers 2014-10-20 16:20:39 +02:00
w90p910_keypad.c input: keyboard: drop owner assignment from platform_drivers 2014-10-20 16:20:39 +02:00
xtkbd.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00