Skip to content

Commit 7947d18

Browse files
Wolfram SangAndi Shyti
authored andcommitted
i2c: opal: 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 9881aac commit 7947d18

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

drivers/i2c/busses/i2c-opal.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ static int i2c_opal_send_request(u32 bus_id, struct opal_i2c_request *req)
7070
return rc;
7171
}
7272

73-
static int i2c_opal_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs,
74-
int num)
73+
static int i2c_opal_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs,
74+
int num)
7575
{
7676
unsigned long opal_id = (unsigned long)adap->algo_data;
7777
struct opal_i2c_request req;
@@ -179,9 +179,9 @@ static u32 i2c_opal_func(struct i2c_adapter *adapter)
179179
}
180180

181181
static const struct i2c_algorithm i2c_opal_algo = {
182-
.master_xfer = i2c_opal_master_xfer,
183-
.smbus_xfer = i2c_opal_smbus_xfer,
184-
.functionality = i2c_opal_func,
182+
.xfer = i2c_opal_xfer,
183+
.smbus_xfer = i2c_opal_smbus_xfer,
184+
.functionality = i2c_opal_func,
185185
};
186186

187187
/*

0 commit comments

Comments
 (0)