]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
i3c: dw: replace ENOTSUPP with SUSV4-compliant EOPNOTSUPP
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 28 Jun 2025 19:20:29 +0000 (21:20 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 7 Jul 2025 21:14:46 +0000 (23:14 +0200)
Replace non-standard ENOTSUPP with the SUSV4-defined error code
EOPNOTSUPP to fix below checkpatch warning:
  "ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP"

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20250628192027.3932-7-wsa+renesas@sang-engineering.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/i3c/master/dw-i3c-master.c

index 0c370672a4fc06e2f782dcaeb51d337d49c06137..ae19926656738bef7cfff24fd67026da4753c9f8 100644 (file)
@@ -932,7 +932,7 @@ static int dw_i3c_master_priv_xfers(struct i3c_dev_desc *dev,
                return 0;
 
        if (i3c_nxfers > master->caps.cmdfifodepth)
-               return -ENOTSUPP;
+               return -EOPNOTSUPP;
 
        for (i = 0; i < i3c_nxfers; i++) {
                if (i3c_xfers[i].rnw)
@@ -943,7 +943,7 @@ static int dw_i3c_master_priv_xfers(struct i3c_dev_desc *dev,
 
        if (ntxwords > master->caps.datafifodepth ||
            nrxwords > master->caps.datafifodepth)
-               return -ENOTSUPP;
+               return -EOPNOTSUPP;
 
        xfer = dw_i3c_master_alloc_xfer(master, i3c_nxfers);
        if (!xfer)
@@ -1093,7 +1093,7 @@ static int dw_i3c_master_i2c_xfers(struct i2c_dev_desc *dev,
                return 0;
 
        if (i2c_nxfers > master->caps.cmdfifodepth)
-               return -ENOTSUPP;
+               return -EOPNOTSUPP;
 
        for (i = 0; i < i2c_nxfers; i++) {
                if (i2c_xfers[i].flags & I2C_M_RD)
@@ -1104,7 +1104,7 @@ static int dw_i3c_master_i2c_xfers(struct i2c_dev_desc *dev,
 
        if (ntxwords > master->caps.datafifodepth ||
            nrxwords > master->caps.datafifodepth)
-               return -ENOTSUPP;
+               return -EOPNOTSUPP;
 
        xfer = dw_i3c_master_alloc_xfer(master, i2c_nxfers);
        if (!xfer)