]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
i2c: nvidia-gpu: reword according to newest specification
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 6 Jul 2024 11:20:57 +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>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/i2c-nvidia-gpu.c

index 26622d24bb1b2d40e3ffbaa90791cf4d7574f215..9bcaa29a71913daddce3d983d5de291a32f5f144 100644 (file)
@@ -163,8 +163,7 @@ static int gpu_i2c_write(struct gpu_i2c_dev *i2cd, u8 data)
        return gpu_i2c_check_status(i2cd);
 }
 
-static int gpu_i2c_master_xfer(struct i2c_adapter *adap,
-                              struct i2c_msg *msgs, int num)
+static int gpu_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num)
 {
        struct gpu_i2c_dev *i2cd = i2c_get_adapdata(adap);
        int status, status2;
@@ -234,8 +233,8 @@ static u32 gpu_i2c_functionality(struct i2c_adapter *adap)
 }
 
 static const struct i2c_algorithm gpu_i2c_algorithm = {
-       .master_xfer    = gpu_i2c_master_xfer,
-       .functionality  = gpu_i2c_functionality,
+       .xfer = gpu_i2c_xfer,
+       .functionality = gpu_i2c_functionality,
 };
 
 /*