Skip to content

Commit 234b336

Browse files
Wolfram SangAndi Shyti
authored andcommitted
i2c: mpc: reword according to newest specification
Change the wording of this driver wrt. the newest I2C v7 and SMBus 3.2 specifications and replace "master/slave" with more appropriate terms. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz> Reviewed-by: Andi Shyti <andi.shyti@kernel.org> Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
1 parent 84187df commit 234b336

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/i2c/busses/i2c-mpc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ static inline void writeccr(struct mpc_i2c *i2c, u32 x)
115115
writeb(x, i2c->base + MPC_I2C_CR);
116116
}
117117

118-
/* Sometimes 9th clock pulse isn't generated, and slave doesn't release
118+
/* Sometimes 9th clock pulse isn't generated, and target doesn't release
119119
* the bus, because it wants to send ACK.
120120
* Following sequence of enabling/disabling and sending start/stop generates
121121
* the 9 pulses, each with a START then ending with STOP, so it's all OK.
@@ -759,7 +759,7 @@ static int fsl_i2c_bus_recovery(struct i2c_adapter *adap)
759759
}
760760

761761
static const struct i2c_algorithm mpc_algo = {
762-
.master_xfer = mpc_xfer,
762+
.xfer = mpc_xfer,
763763
.functionality = mpc_functionality,
764764
};
765765

0 commit comments

Comments
 (0)