From bc1c831d3981019ce6b3cb293ca55ada79172111 Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Fri, 19 May 2023 21:58:14 +0200 Subject: [PATCH] drivers/pcf857x: fix error handling This fixes a typo/copy paste error in the error handling. --- drivers/pcf857x/pcf857x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pcf857x/pcf857x.c b/drivers/pcf857x/pcf857x.c index f7f4e8b224..d74c4a8a18 100644 --- a/drivers/pcf857x/pcf857x.c +++ b/drivers/pcf857x/pcf857x.c @@ -141,7 +141,7 @@ int pcf857x_init(pcf857x_t *dev, const pcf857x_params_t *params) _release(dev); - return PCF857X_OK; + return res; } int pcf857x_gpio_init(pcf857x_t *dev, gpio_t pin, gpio_mode_t mode)