diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2016-01-06 14:20:07 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-05-10 10:26:03 +0200 |
commit | 15d6ab1058ef75047ccff59832781284c9f6c41c (patch) | |
tree | 6c70c7ded11396081af17f30fccf8f283942ccb4 /drivers/input/touchscreen/mms114.c | |
parent | eb3a53c61a395bf25851ea21c2fe3ec53466a67d (diff) |
Input: gpio-keys - fix check for disabling unsupported keys
commit 8679ee4204cfd5cf78b996508ccadc1ec6130f1a upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/input/touchscreen/mms114.c')
0 files changed, 0 insertions, 0 deletions