Commit a0e74ddb authored by Wolfram Sang's avatar Wolfram Sang Committed by Andi Shyti
Browse files

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: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: default avatarAndi Shyti <andi.shyti@kernel.org>
Signed-off-by: default avatarAndi Shyti <andi.shyti@kernel.org>
parent d9192987
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -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,7 +233,7 @@ static u32 gpu_i2c_functionality(struct i2c_adapter *adap)
}

static const struct i2c_algorithm gpu_i2c_algorithm = {
	.master_xfer	= gpu_i2c_master_xfer,
	.xfer = gpu_i2c_xfer,
	.functionality = gpu_i2c_functionality,
};