summaryrefslogtreecommitdiffstats
path: root/drivers/input/keyboard/adp5589-keys.c
diff options
context:
space:
mode:
authorDmitry Torokhov2016-01-06 23:20:07 +0100
committerDmitry Torokhov2016-01-10 18:51:56 +0100
commit8679ee4204cfd5cf78b996508ccadc1ec6130f1a (patch)
treeba1cabafbfacc1fca1797636546d0ca5a0b943d1 /drivers/input/keyboard/adp5589-keys.c
parentInput: omap-keypad - remove dead check (diff)
downloadkernel-qcow2-linux-8679ee4204cfd5cf78b996508ccadc1ec6130f1a.tar.gz
kernel-qcow2-linux-8679ee4204cfd5cf78b996508ccadc1ec6130f1a.tar.xz
kernel-qcow2-linux-8679ee4204cfd5cf78b996508ccadc1ec6130f1a.zip
Input: gpio-keys - fix check for disabling unsupported keys
Commit 4ea14a53d8f881034fa9e186653821c4e3d9a8fb ("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: 4ea14a53d8f8 ("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>
Diffstat (limited to 'drivers/input/keyboard/adp5589-keys.c')
0 files changed, 0 insertions, 0 deletions