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

Commit d868caa1 authored by Troy Kisky's avatar Troy Kisky Committed by Jean Delvare
Browse files

i2c-davinci: Move dev_dbg statement for more output



Previously the dev_dbg only printed if no error.
Printing also on an error is more useful

Signed-off-by: default avatarTroy Kisky <troy.kisky@boundarydevices.com>
Signed-off-by: default avatarKevin Hilman <khilman@mvista.com>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent cc99ff70
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -345,12 +345,11 @@ i2c_davinci_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num)

	for (i = 0; i < num; i++) {
		ret = i2c_davinci_xfer_msg(adap, &msgs[i], (i == (num - 1)));
		dev_dbg(dev->dev, "%s [%d/%d] ret: %d\n", __func__, i + 1, num,
			ret);
		if (ret < 0)
			return ret;
	}

	dev_dbg(dev->dev, "%s:%d ret: %d\n", __func__, __LINE__, ret);

	return num;
}