]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
i2c: altera: reword according to newest specification
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 6 Jul 2024 11:20:03 +0000 (13:20 +0200)
committerAndi Shyti <andi.shyti@kernel.org>
Thu, 11 Jul 2024 13:13:11 +0000 (15:13 +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-altera.c

index 252fbd175fb1ccc82878d1fa7b274285554e369b..f4dde08a3b92cbc322b15726da5ef3666ac3bcfb 100644 (file)
@@ -168,7 +168,7 @@ static void altr_i2c_init(struct altr_i2c_dev *idev)
        /* SDA Hold Time, 300ns */
        writel(3 * clk_mhz / 10, idev->base + ALTR_I2C_SDA_HOLD);
 
-       /* Mask all master interrupt bits */
+       /* Mask all interrupt bits */
        altr_i2c_int_enable(idev, ALTR_I2C_ALL_IRQ, false);
 }
 
@@ -376,7 +376,7 @@ static u32 altr_i2c_func(struct i2c_adapter *adap)
 }
 
 static const struct i2c_algorithm altr_i2c_algo = {
-       .master_xfer = altr_i2c_xfer,
+       .xfer = altr_i2c_xfer,
        .functionality = altr_i2c_func,
 };