]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
i2c: tiny-usb: reword according to newest specification
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 6 Jul 2024 11:20:52 +0000 (13:20 +0200)
committerAndi Shyti <andi.shyti@kernel.org>
Thu, 11 Jul 2024 13:14:23 +0000 (15:14 +0200)
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 <wsa+renesas@sang-engineering.com>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/i2c-tiny-usb.c

index 1bffe36c40ad890d68f7a482b1a8dbbed94f3ef4..0f2ed181b2665ce9cc5f22d73007639bb358547d 100644 (file)
@@ -54,8 +54,6 @@ static int usb_xfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int num)
        struct i2c_msg *pmsg;
        int i, ret;
 
-       dev_dbg(&adapter->dev, "master xfer %d messages:\n", num);
-
        pstatus = kmalloc(sizeof(*pstatus), GFP_KERNEL);
        if (!pstatus)
                return -ENOMEM;
@@ -142,8 +140,8 @@ out:
 
 /* This is the actual algorithm we define */
 static const struct i2c_algorithm usb_algorithm = {
-       .master_xfer    = usb_xfer,
-       .functionality  = usb_func,
+       .xfer = usb_xfer,
+       .functionality = usb_func,
 };
 
 /* ----- end of i2c layer ------------------------------------------------ */