Skip to content

Commit 3fd5894

Browse files
Wolfram SangAndi Shyti
authored andcommitted
i2c: hisi: 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 5c9c9bf commit 3fd5894

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/i2c/busses/i2c-hisi.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ static void hisi_i2c_reset_xfer(struct hisi_i2c_controller *ctlr)
197197
* wait for the transfer done. The major transfer process is performed
198198
* in the IRQ handler.
199199
*/
200-
static int hisi_i2c_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs,
201-
int num)
200+
static int hisi_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs,
201+
int num)
202202
{
203203
struct hisi_i2c_controller *ctlr = i2c_get_adapdata(adap);
204204
DECLARE_COMPLETION_ONSTACK(done);
@@ -236,8 +236,8 @@ static u32 hisi_i2c_functionality(struct i2c_adapter *adap)
236236
}
237237

238238
static const struct i2c_algorithm hisi_i2c_algo = {
239-
.master_xfer = hisi_i2c_master_xfer,
240-
.functionality = hisi_i2c_functionality,
239+
.xfer = hisi_i2c_xfer,
240+
.functionality = hisi_i2c_functionality,
241241
};
242242

243243
static int hisi_i2c_read_rx_fifo(struct hisi_i2c_controller *ctlr)

0 commit comments

Comments
 (0)