diff options
author | Axel Lin | 2019-03-11 14:29:37 +0100 |
---|---|---|
committer | Bartosz Golaszewski | 2019-03-22 16:48:47 +0100 |
commit | c5bc6e526d3f217ed2cc3681d256dc4a2af4cc2b (patch) | |
tree | cdb68a6c7101ce5df45e742da2edeb2b80923e73 /drivers/leds/leds-rb532.c | |
parent | gpio: exar: add a check for the return value of ida_simple_get fails (diff) | |
download | kernel-qcow2-linux-c5bc6e526d3f217ed2cc3681d256dc4a2af4cc2b.tar.gz kernel-qcow2-linux-c5bc6e526d3f217ed2cc3681d256dc4a2af4cc2b.tar.xz kernel-qcow2-linux-c5bc6e526d3f217ed2cc3681d256dc4a2af4cc2b.zip |
gpio: adnp: Fix testing wrong value in adnp_gpio_direction_input
Current code test wrong value so it does not verify if the written
data is correctly read back. Fix it.
Also make it return -EPERM if read value does not match written bit,
just like it done for adnp_gpio_direction_output().
Fixes: 5e969a401a01 ("gpio: Add Avionic Design N-bit GPIO expander support")
Cc: <stable@vger.kernel.org>
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'drivers/leds/leds-rb532.c')
0 files changed, 0 insertions, 0 deletions