Skip to content

Commit 8c68907

Browse files
Wolfram SangAndi Shyti
authored andcommitted
i2c: lpc2k: 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: Andi Shyti <andi.shyti@kernel.org> Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
1 parent fe5df00 commit 8c68907

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

drivers/i2c/busses/i2c-lpc2k.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050

5151
/*
5252
* 26 possible I2C status codes, but codes applicable only
53-
* to master are listed here and used in this driver
53+
* to controller mode are listed here and used in this driver
5454
*/
5555
enum {
5656
M_BUS_ERROR = 0x00,
@@ -157,7 +157,7 @@ static void i2c_lpc2k_pump_msg(struct lpc2k_i2c *i2c)
157157
break;
158158

159159
case MR_ADDR_R_ACK:
160-
/* Receive first byte from slave */
160+
/* Receive first byte from target */
161161
if (i2c->msg->len == 1) {
162162
/* Last byte, return NACK */
163163
writel(LPC24XX_AA, i2c->base + LPC24XX_I2CONCLR);
@@ -196,7 +196,7 @@ static void i2c_lpc2k_pump_msg(struct lpc2k_i2c *i2c)
196196
}
197197

198198
/*
199-
* One pre-last data input, send NACK to tell the slave that
199+
* One pre-last data input, send NACK to tell the target that
200200
* this is going to be the last data byte to be transferred.
201201
*/
202202
if (i2c->msg_idx >= i2c->msg->len - 2) {
@@ -338,8 +338,8 @@ static u32 i2c_lpc2k_functionality(struct i2c_adapter *adap)
338338
}
339339

340340
static const struct i2c_algorithm i2c_lpc2k_algorithm = {
341-
.master_xfer = i2c_lpc2k_xfer,
342-
.functionality = i2c_lpc2k_functionality,
341+
.xfer = i2c_lpc2k_xfer,
342+
.functionality = i2c_lpc2k_functionality,
343343
};
344344

345345
static int i2c_lpc2k_probe(struct platform_device *pdev)

0 commit comments

Comments
 (0)