aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2019-03-11 21:29:37 +0800
committerElektroschmock <elektroschmock78@googlemail.com>2019-08-20 19:22:06 +0200
commitb009d80ec2102ef44307b8576f8969d795ecfe0c (patch)
treef1044872ea04d5ddf1770c2ef1af999497e637a1 /net/lapb/lapb_subr.c
parent92913d6dc23853a287081e9ebd7658793d927075 (diff)
gpio: adnp: Fix testing wrong value in adnp_gpio_direction_input
commit c5bc6e526d3f217ed2cc3681d256dc4a2af4cc2b upstream. 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") Change-Id: I5bfca7b948cdc66127219e7bcdcbc4b0cd83ae76 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> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions