Skip to content

Commit a0e74dd

Browse files
Wolfram SangAndi Shyti
authored andcommitted
i2c: nvidia-gpu: 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 <[email protected]> Reviewed-by: Andi Shyti <[email protected]> Signed-off-by: Andi Shyti <[email protected]>
1 parent d919298 commit a0e74dd

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

drivers/i2c/busses/i2c-nvidia-gpu.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,7 @@ static int gpu_i2c_write(struct gpu_i2c_dev *i2cd, u8 data)
163163
return gpu_i2c_check_status(i2cd);
164164
}
165165

166-
static int gpu_i2c_master_xfer(struct i2c_adapter *adap,
167-
struct i2c_msg *msgs, int num)
166+
static int gpu_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num)
168167
{
169168
struct gpu_i2c_dev *i2cd = i2c_get_adapdata(adap);
170169
int status, status2;
@@ -234,8 +233,8 @@ static u32 gpu_i2c_functionality(struct i2c_adapter *adap)
234233
}
235234

236235
static const struct i2c_algorithm gpu_i2c_algorithm = {
237-
.master_xfer = gpu_i2c_master_xfer,
238-
.functionality = gpu_i2c_functionality,
236+
.xfer = gpu_i2c_xfer,
237+
.functionality = gpu_i2c_functionality,
239238
};
240239

241240
/*

0 commit comments

Comments
 (0)