Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: da9063: Propagate errno when I2C mode fails

Don't hardocde EIO but use the obtained value.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Mark Jonas <mark.jonas@de.bosch.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Wolfram Sang and committed by
Lee Jones
921071a8 6f1b6607

+1 -1
+1 -1
drivers/mfd/da9063-i2c.c
··· 448 448 DA9063_TWOWIRE_TO); 449 449 if (ret < 0) { 450 450 dev_err(da9063->dev, "Failed to set Two-Wire Bus Mode.\n"); 451 - return -EIO; 451 + return ret; 452 452 } 453 453 } 454 454