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

Commit de9a8634 authored by Peter Rosin's avatar Peter Rosin Committed by Wolfram Sang
Browse files

i2c: pmcmsp: return message count on master_xfer success



Returning zero is wrong in this case.

Signed-off-by: default avatarPeter Rosin <peda@axentia.se>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
Fixes: 1b144df1 ("i2c: New PMC MSP71xx TWI bus driver")
parent 06cb616b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -567,7 +567,7 @@ static int pmcmsptwi_master_xfer(struct i2c_adapter *adap,
		return -1;
	}

	return 0;
	return num;
}

static u32 pmcmsptwi_i2c_func(struct i2c_adapter *adapter)