Skip to content

Commit e1571b1

Browse files
Wolfram SangAndi Shyti
authored andcommitted
i2c: riic: 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]> Signed-off-by: Andi Shyti <[email protected]>
1 parent 0fddb57 commit e1571b1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/i2c/busses/i2c-riic.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
*
1313
* 1) The main xfer routine kicks off a transmission by putting the start bit
1414
* (or repeated start) on the bus and enabling the transmit interrupt (TIE)
15-
* since we need to send the slave address + RW bit in every case.
15+
* since we need to send the target address + RW bit in every case.
1616
*
17-
* 2) TIE sends slave address + RW bit and selects how to continue.
17+
* 2) TIE sends target address + RW bit and selects how to continue.
1818
*
1919
* 3a) Write case: We keep utilizing TIE as long as we have data to send. If we
2020
* are done, we switch over to the transmission done interrupt (TEIE) and mark
@@ -294,8 +294,8 @@ static u32 riic_func(struct i2c_adapter *adap)
294294
}
295295

296296
static const struct i2c_algorithm riic_algo = {
297-
.master_xfer = riic_xfer,
298-
.functionality = riic_func,
297+
.xfer = riic_xfer,
298+
.functionality = riic_func,
299299
};
300300

301301
static int riic_init_hw(struct riic_dev *riic, struct i2c_timings *t)

0 commit comments

Comments
 (0)