i2c: dw: Update the master_xfer callback name
authorShyam Sundar S K <Shyam-sundar.S-k@amd.com>
Mon, 17 Feb 2025 12:47:09 +0000 (18:17 +0530)
committerAndi Shyti <andi.shyti@kernel.org>
Tue, 18 Mar 2025 20:53:53 +0000 (21:53 +0100)
In light of the recent updates to the i2c subsystem, ensure to use the
correct callback names. Specifically, replace '.master_xfer' with '.xfer'.

Co-developed-by: Sanket Goswami <Sanket.Goswami@amd.com>
Signed-off-by: Sanket Goswami <Sanket.Goswami@amd.com>
Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20250217124709.3121848-2-Shyam-sundar.S-k@amd.com
drivers/i2c/busses/i2c-designware-master.c

index 2569bf1a72e0ea8861ccf36fc296bf0349d3f072..c5394229b77f57d3490c4ba288e98b6ef90e35a4 100644 (file)
@@ -907,7 +907,7 @@ done_nolock:
 }
 
 static const struct i2c_algorithm i2c_dw_algo = {
-       .master_xfer = i2c_dw_xfer,
+       .xfer = i2c_dw_xfer,
        .functionality = i2c_dw_func,
 };