Files
linux/drivers/gpio
Andrey Gusakov de6c8af17f gpio: pca953x: do not ignore i2c errors
commit 540cffbab8 upstream.

Per gpio_chip interface, error shall be proparated to the caller.

Attempt to silent diagnostics by returning zero (as written in the
comment) is plain wrong, because the zero return can be interpreted by
the caller as the gpio value.

Cc: stable@vger.kernel.org
Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-10-07 07:53:06 +02:00
..
2020-07-20 15:34:59 +02:00
2021-04-14 10:19:22 +01:00
2020-07-23 15:03:25 +02:00
2018-05-16 14:35:24 +02:00
2020-01-15 11:24:19 +01:00
2021-05-05 16:07:41 +02:00
2019-11-07 09:27:48 +01:00
2021-02-15 11:43:30 +01:00
2019-12-09 10:40:18 +01:00
2021-05-28 16:15:15 +02:00