Dan Carpenter 09dd5630fe gpio: winbond: Fix error code in winbond_gpio_get()
[ Upstream commit 9ca766eaea2e87b8b773bff04ee56c055cb76d4e ]

This error path returns 1, but it should instead propagate the negative
error code from winbond_sio_enter().

Fixes: a0d65009411c ("gpio: winbond: Add driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-29 09:03:26 +02:00
..
2020-07-20 15:34:59 +02:00
2021-04-14 10:19:22 +01:00
2021-09-07 12:27:27 -07:00
2020-01-15 11:24:19 +01:00
2021-05-05 16:07:41 +02:00
2021-09-07 12:27:27 -07:00
2021-09-07 12:27:27 -07:00
2021-08-29 21:19:50 +02:00
2021-12-29 12:28:43 +01:00