Searched hist:"8679 ee4204cfd5cf78b996508ccadc1ec6130f1a" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/input/keyboard/ |
H A D | gpio_keys.c | diff 8679ee4204cfd5cf78b996508ccadc1ec6130f1a Wed Jan 06 16:20:07 CST 2016 Dmitry Torokhov <dmitry.torokhov@gmail.com> 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>
|