i2c: ocores: reword according to newest specification
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 6 Jul 2024 11:20:33 +0000 (13:20 +0200)
committerAndi Shyti <andi.shyti@kernel.org>
Thu, 11 Jul 2024 13:14:16 +0000 (15:14 +0200)
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>
drivers/i2c/busses/i2c-ocores.c

index 4ad670a80a63af7b1d5be98c2886757b85545e5e..482b37c8a12970438400960bc667e6f7331e0e54 100644 (file)
@@ -444,8 +444,8 @@ static u32 ocores_func(struct i2c_adapter *adap)
 }
 
 static struct i2c_algorithm ocores_algorithm = {
-       .master_xfer = ocores_xfer,
-       .master_xfer_atomic = ocores_xfer_polling,
+       .xfer = ocores_xfer,
+       .xfer_atomic = ocores_xfer_polling,
        .functionality = ocores_func,
 };
 
@@ -682,13 +682,13 @@ static int ocores_i2c_probe(struct platform_device *pdev)
        }
 
        if (irq == -ENXIO) {
-               ocores_algorithm.master_xfer = ocores_xfer_polling;
+               ocores_algorithm.xfer = ocores_xfer_polling;
        } else {
                if (irq < 0)
                        return irq;
        }
 
-       if (ocores_algorithm.master_xfer != ocores_xfer_polling) {
+       if (ocores_algorithm.xfer != ocores_xfer_polling) {
                ret = devm_request_any_context_irq(&pdev->dev, irq,
                                                   ocores_isr, 0,
                                                   pdev->name, i2c);