Skip to content

Commit 7c9e670

Browse files
Wolfram SangAndi Shyti
authored andcommitted
i2c: hix5hd2: 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 <wsa+renesas@sang-engineering.com> Reviewed-by: Andi Shyti <andi.shyti@kernel.org> Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
1 parent 3fd5894 commit 7c9e670

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/i2c/busses/i2c-hix5hd2.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ static void hix5hd2_read_handle(struct hix5hd2_i2c_priv *priv)
200200
/* the last byte don't need send ACK */
201201
writel_relaxed(I2C_READ | I2C_NO_ACK, priv->regs + HIX5I2C_COM);
202202
} else if (priv->msg_len > 1) {
203-
/* if i2c master receive data will send ACK */
203+
/* if i2c controller receive data will send ACK */
204204
writel_relaxed(I2C_READ, priv->regs + HIX5I2C_COM);
205205
} else {
206206
hix5hd2_rw_handle_stop(priv);
@@ -384,8 +384,8 @@ static u32 hix5hd2_i2c_func(struct i2c_adapter *adap)
384384
}
385385

386386
static const struct i2c_algorithm hix5hd2_i2c_algorithm = {
387-
.master_xfer = hix5hd2_i2c_xfer,
388-
.functionality = hix5hd2_i2c_func,
387+
.xfer = hix5hd2_i2c_xfer,
388+
.functionality = hix5hd2_i2c_func,
389389
};
390390

391391
static int hix5hd2_i2c_probe(struct platform_device *pdev)

0 commit comments

Comments
 (0)