]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
i2c: opal: reword according to newest specification
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 6 Jul 2024 11:20:35 +0000 (13:20 +0200)
committerAndi Shyti <andi.shyti@kernel.org>
Thu, 11 Jul 2024 13:14:17 +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.

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-opal.c

index 17ef87d50f7c7d51d5c8d0187fb3663f5a742a58..d9dd71cf37fd29f5d7aca4a386084a7d98abc9ba 100644 (file)
@@ -70,8 +70,8 @@ exit:
        return rc;
 }
 
-static int i2c_opal_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs,
-                               int num)
+static int i2c_opal_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs,
+                        int num)
 {
        unsigned long opal_id = (unsigned long)adap->algo_data;
        struct opal_i2c_request req;
@@ -179,9 +179,9 @@ static u32 i2c_opal_func(struct i2c_adapter *adapter)
 }
 
 static const struct i2c_algorithm i2c_opal_algo = {
-       .master_xfer    = i2c_opal_master_xfer,
-       .smbus_xfer     = i2c_opal_smbus_xfer,
-       .functionality  = i2c_opal_func,
+       .xfer = i2c_opal_xfer,
+       .smbus_xfer = i2c_opal_smbus_xfer,
+       .functionality = i2c_opal_func,
 };
 
 /*