@@ -837,14 +837,14 @@ static int i3c_master_send_ccc_cmd_locked(struct i3c_master_controller *master,
837
837
return - EINVAL ;
838
838
839
839
if (!master -> ops -> send_ccc_cmd )
840
- return - ENOTSUPP ;
840
+ return - EOPNOTSUPP ;
841
841
842
842
if ((cmd -> id & I3C_CCC_DIRECT ) && (!cmd -> dests || !cmd -> ndests ))
843
843
return - EINVAL ;
844
844
845
845
if (master -> ops -> supports_ccc_cmd &&
846
846
!master -> ops -> supports_ccc_cmd (master , cmd ))
847
- return - ENOTSUPP ;
847
+ return - EOPNOTSUPP ;
848
848
849
849
ret = master -> ops -> send_ccc_cmd (master , cmd );
850
850
if (ret ) {
@@ -1439,7 +1439,7 @@ static int i3c_master_retrieve_dev_info(struct i3c_dev_desc *dev)
1439
1439
1440
1440
if (dev -> info .bcr & I3C_BCR_HDR_CAP ) {
1441
1441
ret = i3c_master_gethdrcap_locked (master , & dev -> info );
1442
- if (ret && ret != - ENOTSUPP )
1442
+ if (ret && ret != - EOPNOTSUPP )
1443
1443
return ret ;
1444
1444
}
1445
1445
@@ -2210,7 +2210,7 @@ of_i3c_master_add_i2c_boardinfo(struct i3c_master_controller *master,
2210
2210
*/
2211
2211
if (boardinfo -> base .flags & I2C_CLIENT_TEN ) {
2212
2212
dev_err (dev , "I2C device with 10 bit address not supported." );
2213
- return - ENOTSUPP ;
2213
+ return - EOPNOTSUPP ;
2214
2214
}
2215
2215
2216
2216
/* LVR is encoded in reg[2]. */
@@ -2340,13 +2340,13 @@ static int i3c_master_i2c_adapter_xfer(struct i2c_adapter *adap,
2340
2340
return - EINVAL ;
2341
2341
2342
2342
if (!master -> ops -> i2c_xfers )
2343
- return - ENOTSUPP ;
2343
+ return - EOPNOTSUPP ;
2344
2344
2345
2345
/* Doing transfers to different devices is not supported. */
2346
2346
addr = xfers [0 ].addr ;
2347
2347
for (i = 1 ; i < nxfers ; i ++ ) {
2348
2348
if (addr != xfers [i ].addr )
2349
- return - ENOTSUPP ;
2349
+ return - EOPNOTSUPP ;
2350
2350
}
2351
2351
2352
2352
i3c_bus_normaluse_lock (& master -> bus );
@@ -2768,7 +2768,7 @@ static int i3c_master_check_ops(const struct i3c_master_controller_ops *ops)
2768
2768
* controller)
2769
2769
* @ops: the master controller operations
2770
2770
* @secondary: true if you are registering a secondary master. Will return
2771
- * -ENOTSUPP if set to true since secondary masters are not yet
2771
+ * -EOPNOTSUPP if set to true since secondary masters are not yet
2772
2772
* supported
2773
2773
*
2774
2774
* This function takes care of everything for you:
@@ -2795,7 +2795,7 @@ int i3c_master_register(struct i3c_master_controller *master,
2795
2795
2796
2796
/* We do not support secondary masters yet. */
2797
2797
if (secondary )
2798
- return - ENOTSUPP ;
2798
+ return - EOPNOTSUPP ;
2799
2799
2800
2800
ret = i3c_master_check_ops (ops );
2801
2801
if (ret )
@@ -2956,7 +2956,7 @@ int i3c_dev_do_priv_xfers_locked(struct i3c_dev_desc *dev,
2956
2956
return - EINVAL ;
2957
2957
2958
2958
if (!master -> ops -> priv_xfers )
2959
- return - ENOTSUPP ;
2959
+ return - EOPNOTSUPP ;
2960
2960
2961
2961
return master -> ops -> priv_xfers (dev , xfers , nxfers );
2962
2962
}
@@ -3006,7 +3006,7 @@ int i3c_dev_request_ibi_locked(struct i3c_dev_desc *dev,
3006
3006
int ret ;
3007
3007
3008
3008
if (!master -> ops -> request_ibi )
3009
- return - ENOTSUPP ;
3009
+ return - EOPNOTSUPP ;
3010
3010
3011
3011
if (dev -> ibi )
3012
3012
return - EBUSY ;
0 commit comments