[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <31c67c873f564ccda7e0f1860ec13806@de.bosch.com>
Date: Tue, 25 May 2021 14:03:32 +0000
From: "Jonas Mark (BT-FIR/ENG1-Grb)" <Mark.Jonas@...bosch.com>
To: Wolfram Sang <wsa+renesas@...g-engineering.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
CC: Support Opensource <support.opensource@...semi.com>,
Lee Jones <lee.jones@...aro.org>,
"Streidl Hubert (BT-FIR/ENG1-Grb)" <Hubert.Streidl@...bosch.com>,
"stwiss.opensource@...semi.com" <stwiss.opensource@...semi.com>,
"Jonas Mark (BT-FIR/ENG1-Grb)" <Mark.Jonas@...bosch.com>
Subject: AW: [PATCH] mfd: da9063: propagate errno when I2C mode fails
> Von: Wolfram Sang <wsa+renesas@...g-engineering.com>
> Gesendet: Dienstag, 25. Mai 2021 15:43
> An: linux-kernel@...r.kernel.org
> Cc: Support Opensource <support.opensource@...semi.com>; Lee Jones
> <lee.jones@...aro.org>; Jonas Mark (BT-FIR/ENG1-Grb)
> <Mark.Jonas@...bosch.com>; Streidl Hubert (BT-FIR/ENG1-Grb)
> <Hubert.Streidl@...bosch.com>; stwiss.opensource@...semi.com; Wolfram
> Sang <wsa+renesas@...g-engineering.com>
> Betreff: [PATCH] mfd: da9063: propagate errno when I2C mode fails
>
> Don't hardocde EIO but use the obtained value.
>
> Signed-off-by: Wolfram Sang <wsa+renesas@...g-engineering.com>
> ---
> drivers/mfd/da9063-i2c.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mfd/da9063-i2c.c b/drivers/mfd/da9063-i2c.c index
> 783a14af18e2..4b7f707b7952 100644
> --- a/drivers/mfd/da9063-i2c.c
> +++ b/drivers/mfd/da9063-i2c.c
> @@ -448,7 +448,7 @@ static int da9063_i2c_probe(struct i2c_client *i2c,
> DA9063_TWOWIRE_TO);
> if (ret < 0) {
> dev_err(da9063->dev, "Failed to set Two-Wire Bus
> Mode.\n");
> - return -EIO;
> + return ret;
> }
> }
>
> --
> 2.30.2
Reviewed-by: Mark Jonas <mark.jonas@...bosch.com>
Powered by blists - more mailing lists