Skip to content

Commit 664e69d

Browse files
Wolfram SangAndi Shyti
authored andcommitted
i2c: tiny-usb: 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. Remove a superfluous debug output which is already available via tracing. Signed-off-by: Wolfram Sang <[email protected]> Reviewed-by: Andi Shyti <[email protected]> Signed-off-by: Andi Shyti <[email protected]>
1 parent 44981dc commit 664e69d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/i2c/busses/i2c-tiny-usb.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ static int usb_xfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int num)
5454
struct i2c_msg *pmsg;
5555
int i, ret;
5656

57-
dev_dbg(&adapter->dev, "master xfer %d messages:\n", num);
58-
5957
pstatus = kmalloc(sizeof(*pstatus), GFP_KERNEL);
6058
if (!pstatus)
6159
return -ENOMEM;
@@ -142,8 +140,8 @@ static u32 usb_func(struct i2c_adapter *adapter)
142140

143141
/* This is the actual algorithm we define */
144142
static const struct i2c_algorithm usb_algorithm = {
145-
.master_xfer = usb_xfer,
146-
.functionality = usb_func,
143+
.xfer = usb_xfer,
144+
.functionality = usb_func,
147145
};
148146

149147
/* ----- end of i2c layer ------------------------------------------------ */

0 commit comments

Comments
 (0)