Skip to content

Commit 79e9df7

Browse files
Wolfram SangAndi Shyti
authored andcommitted
i2c: cpm: 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 <[email protected]> Reviewed-by: Andi Shyti <[email protected]> Acked-by: Jochen Friedrich <[email protected]> Signed-off-by: Andi Shyti <[email protected]>
1 parent 532cc21 commit 79e9df7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/i2c/busses/i2c-cpm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ static u32 cpm_i2c_func(struct i2c_adapter *adap)
402402
/* -----exported algorithm data: ------------------------------------- */
403403

404404
static const struct i2c_algorithm cpm_i2c_algo = {
405-
.master_xfer = cpm_i2c_xfer,
405+
.xfer = cpm_i2c_xfer,
406406
.functionality = cpm_i2c_func,
407407
};
408408

@@ -570,7 +570,7 @@ static int cpm_i2c_setup(struct cpm_i2c *cpm)
570570
out_8(&cpm->i2c_reg->i2brg, brg);
571571

572572
out_8(&cpm->i2c_reg->i2mod, 0x00);
573-
out_8(&cpm->i2c_reg->i2com, I2COM_MASTER); /* Master mode */
573+
out_8(&cpm->i2c_reg->i2com, I2COM_MASTER);
574574

575575
/* Disable interrupts. */
576576
out_8(&cpm->i2c_reg->i2cmr, 0);

0 commit comments

Comments
 (0)