Skip to content

Commit 8d53c0d

Browse files
Wolfram Sangalexandrebelloni
authored andcommitted
i3c: master: cdns: replace ENOTSUPP with SUSV4-compliant EOPNOTSUPP
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 <[email protected]> Reviewed-by: Frank Li <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent 566aebe commit 8d53c0d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

drivers/i3c/master/i3c-master-cdns.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -742,15 +742,15 @@ static int cdns_i3c_master_priv_xfers(struct i3c_dev_desc *dev,
742742

743743
for (i = 0; i < nxfers; i++) {
744744
if (xfers[i].len > CMD0_FIFO_PL_LEN_MAX)
745-
return -ENOTSUPP;
745+
return -EOPNOTSUPP;
746746
}
747747

748748
if (!nxfers)
749749
return 0;
750750

751751
if (nxfers > master->caps.cmdfifodepth ||
752752
nxfers > master->caps.cmdrfifodepth)
753-
return -ENOTSUPP;
753+
return -EOPNOTSUPP;
754754

755755
/*
756756
* First make sure that all transactions (block of transfers separated
@@ -765,7 +765,7 @@ static int cdns_i3c_master_priv_xfers(struct i3c_dev_desc *dev,
765765

766766
if (rxslots > master->caps.rxfifodepth ||
767767
txslots > master->caps.txfifodepth)
768-
return -ENOTSUPP;
768+
return -EOPNOTSUPP;
769769

770770
cdns_xfer = cdns_i3c_master_alloc_xfer(master, nxfers);
771771
if (!cdns_xfer)
@@ -822,11 +822,11 @@ static int cdns_i3c_master_i2c_xfers(struct i2c_dev_desc *dev,
822822
int i, ret = 0;
823823

824824
if (nxfers > master->caps.cmdfifodepth)
825-
return -ENOTSUPP;
825+
return -EOPNOTSUPP;
826826

827827
for (i = 0; i < nxfers; i++) {
828828
if (xfers[i].len > CMD0_FIFO_PL_LEN_MAX)
829-
return -ENOTSUPP;
829+
return -EOPNOTSUPP;
830830

831831
if (xfers[i].flags & I2C_M_RD)
832832
nrxwords += DIV_ROUND_UP(xfers[i].len, 4);
@@ -836,7 +836,7 @@ static int cdns_i3c_master_i2c_xfers(struct i2c_dev_desc *dev,
836836

837837
if (ntxwords > master->caps.txfifodepth ||
838838
nrxwords > master->caps.rxfifodepth)
839-
return -ENOTSUPP;
839+
return -EOPNOTSUPP;
840840

841841
xfer = cdns_i3c_master_alloc_xfer(master, nxfers);
842842
if (!xfer)

0 commit comments

Comments
 (0)