diff options
author | Bjorn Andersson <bjorn.andersson@sonymobile.com> | 2015-10-02 10:44:00 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-10-02 11:44:15 -0700 |
commit | 77fa05541cc02ab87e6d6e42254052b0cd30c3a4 (patch) | |
tree | fe3414c62114c54f2c15a4edbb12b4578bb1e672 /drivers/pnp/driver.c | |
parent | a27b5e0a78c31b57fa5cceaec4415caeca2e50dd (diff) |
Input: gpio_keys - don't report events on gpio failure
In the cases where the gpio chip fails to acquire the current state an
error is reported back to gpio_keys. This is currently interpreted as if
the line went high, which just confuses the developer.
This patch introduces an error print in this case and skipps the
reporting of a input event; to aid in debugging this issue.
Reported-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/pnp/driver.c')
0 files changed, 0 insertions, 0 deletions