Skip to content

Commit 566aebe

Browse files
Wolfram Sangalexandrebelloni
authored andcommitted
i3c: dw: 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 d10a4c3 commit 566aebe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/i3c/master/dw-i3c-master.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,7 @@ static int dw_i3c_master_priv_xfers(struct i3c_dev_desc *dev,
932932
return 0;
933933

934934
if (i3c_nxfers > master->caps.cmdfifodepth)
935-
return -ENOTSUPP;
935+
return -EOPNOTSUPP;
936936

937937
for (i = 0; i < i3c_nxfers; i++) {
938938
if (i3c_xfers[i].rnw)
@@ -943,7 +943,7 @@ static int dw_i3c_master_priv_xfers(struct i3c_dev_desc *dev,
943943

944944
if (ntxwords > master->caps.datafifodepth ||
945945
nrxwords > master->caps.datafifodepth)
946-
return -ENOTSUPP;
946+
return -EOPNOTSUPP;
947947

948948
xfer = dw_i3c_master_alloc_xfer(master, i3c_nxfers);
949949
if (!xfer)
@@ -1093,7 +1093,7 @@ static int dw_i3c_master_i2c_xfers(struct i2c_dev_desc *dev,
10931093
return 0;
10941094

10951095
if (i2c_nxfers > master->caps.cmdfifodepth)
1096-
return -ENOTSUPP;
1096+
return -EOPNOTSUPP;
10971097

10981098
for (i = 0; i < i2c_nxfers; i++) {
10991099
if (i2c_xfers[i].flags & I2C_M_RD)
@@ -1104,7 +1104,7 @@ static int dw_i3c_master_i2c_xfers(struct i2c_dev_desc *dev,
11041104

11051105
if (ntxwords > master->caps.datafifodepth ||
11061106
nrxwords > master->caps.datafifodepth)
1107-
return -ENOTSUPP;
1107+
return -EOPNOTSUPP;
11081108

11091109
xfer = dw_i3c_master_alloc_xfer(master, i2c_nxfers);
11101110
if (!xfer)

0 commit comments

Comments
 (0)