Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bb032904 authored by Masahisa Kojima's avatar Masahisa Kojima Committed by Greg Kroah-Hartman
Browse files

i2c: synquacer: fix synquacer_i2c_doxfer() return value



commit ff9378904d9d7a3fcb8406604e089e535e357b1d upstream.

master_xfer should return the number of messages successfully
processed.

Fixes: 0d676a6c ("i2c: add support for Socionext SynQuacer I2C controller")
Cc: <stable@vger.kernel.org> # v4.19+
Signed-off-by: default avatarOkamoto Satoru <okamoto.satoru@socionext.com>
Signed-off-by: default avatarMasahisa Kojima <masahisa.kojima@linaro.org>
Acked-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d2d8f640
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -356,7 +356,7 @@ static int synquacer_i2c_doxfer(struct synquacer_i2c *i2c,
	/* wait 2 clock periods to ensure the stop has been through the bus */
	/* wait 2 clock periods to ensure the stop has been through the bus */
	udelay(DIV_ROUND_UP(2 * 1000, i2c->speed_khz));
	udelay(DIV_ROUND_UP(2 * 1000, i2c->speed_khz));


	return 0;
	return ret;
}
}


static irqreturn_t synquacer_i2c_isr(int irq, void *dev_id)
static irqreturn_t synquacer_i2c_isr(int irq, void *dev_id)