mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 13:03:25 +01:00
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 <wsa+renesas@sang-engineering.com> Reviewed-by: Andi Shyti <andi.shyti@kernel.org> Acked-by: Jochen Friedrich <jochen@scram.de> Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
This commit is contained in:
parent
532cc2176a
commit
79e9df7dc5
1 changed files with 2 additions and 2 deletions
|
@ -402,7 +402,7 @@ static u32 cpm_i2c_func(struct i2c_adapter *adap)
|
|||
/* -----exported algorithm data: ------------------------------------- */
|
||||
|
||||
static const struct i2c_algorithm cpm_i2c_algo = {
|
||||
.master_xfer = cpm_i2c_xfer,
|
||||
.xfer = cpm_i2c_xfer,
|
||||
.functionality = cpm_i2c_func,
|
||||
};
|
||||
|
||||
|
@ -570,7 +570,7 @@ static int cpm_i2c_setup(struct cpm_i2c *cpm)
|
|||
out_8(&cpm->i2c_reg->i2brg, brg);
|
||||
|
||||
out_8(&cpm->i2c_reg->i2mod, 0x00);
|
||||
out_8(&cpm->i2c_reg->i2com, I2COM_MASTER); /* Master mode */
|
||||
out_8(&cpm->i2c_reg->i2com, I2COM_MASTER);
|
||||
|
||||
/* Disable interrupts. */
|
||||
out_8(&cpm->i2c_reg->i2cmr, 0);
|
||||
|
|
Loading…
Reference in a new issue