Skip to content

Commit 5a078b4

Browse files
Wolfram SangAndi Shyti
authored andcommitted
i2c: ocores: 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 3fdf633 commit 5a078b4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/i2c/busses/i2c-ocores.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,8 @@ static u32 ocores_func(struct i2c_adapter *adap)
444444
}
445445

446446
static struct i2c_algorithm ocores_algorithm = {
447-
.master_xfer = ocores_xfer,
448-
.master_xfer_atomic = ocores_xfer_polling,
447+
.xfer = ocores_xfer,
448+
.xfer_atomic = ocores_xfer_polling,
449449
.functionality = ocores_func,
450450
};
451451

@@ -682,13 +682,13 @@ static int ocores_i2c_probe(struct platform_device *pdev)
682682
}
683683

684684
if (irq == -ENXIO) {
685-
ocores_algorithm.master_xfer = ocores_xfer_polling;
685+
ocores_algorithm.xfer = ocores_xfer_polling;
686686
} else {
687687
if (irq < 0)
688688
return irq;
689689
}
690690

691-
if (ocores_algorithm.master_xfer != ocores_xfer_polling) {
691+
if (ocores_algorithm.xfer != ocores_xfer_polling) {
692692
ret = devm_request_any_context_irq(&pdev->dev, irq,
693693
ocores_isr, 0,
694694
pdev->name, i2c);

0 commit comments

Comments
 (0)