]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
i2c: virtio: reword according to newest specification
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 6 Jul 2024 11:20:58 +0000 (13:20 +0200)
committerAndi Shyti <andi.shyti@kernel.org>
Thu, 11 Jul 2024 13:14:25 +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>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/i2c-virtio.c

index c60ae531ba57c7f0a5f830267e0d0bbb044da2b7..52ba1e0845ca78480592b58b1d8ab2744ee9a9ab 100644 (file)
@@ -183,7 +183,7 @@ static u32 virtio_i2c_func(struct i2c_adapter *adap)
 }
 
 static struct i2c_algorithm virtio_algorithm = {
-       .master_xfer = virtio_i2c_xfer,
+       .xfer = virtio_i2c_xfer,
        .functionality = virtio_i2c_func,
 };