Skip to content

Commit 07bee26

Browse files
finikorgnashif
authored andcommitted
ipm: Correct IPM API error codes
Indicates that error codes are negative. Signed-off-by: Andrei Emeltchenko <[email protected]>
1 parent e770c8d commit 07bee26

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

include/drivers/ipm.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,11 @@ struct ipm_driver_api {
122122
* @param data Pointer to the data sent in the message.
123123
* @param size Size of the data.
124124
*
125-
* @retval EBUSY If the remote hasn't yet read the last data sent.
126-
* @retval EMSGSIZE If the supplied data size is unsupported by the driver.
127-
* @retval EINVAL If there was a bad parameter, such as: too-large id value.
128-
* or the device isn't an outbound IPM channel.
129-
* @retval 0 On success.
125+
* @retval -EBUSY If the remote hasn't yet read the last data sent.
126+
* @retval -EMSGSIZE If the supplied data size is unsupported by the driver.
127+
* @retval -EINVAL If there was a bad parameter, such as: too-large id value.
128+
* or the device isn't an outbound IPM channel.
129+
* @retval 0 On success.
130130
*/
131131
__syscall int ipm_send(struct device *ipmdev, int wait, u32_t id,
132132
const void *data, int size);
@@ -200,8 +200,8 @@ static inline u32_t z_impl_ipm_max_id_val_get(struct device *ipmdev)
200200
* @param ipmdev Driver instance pointer.
201201
* @param enable Set to 0 to disable and to nonzero to enable.
202202
*
203-
* @retval 0 On success.
204-
* @retval EINVAL If it isn't an inbound channel.
203+
* @retval 0 On success.
204+
* @retval -EINVAL If it isn't an inbound channel.
205205
*/
206206
__syscall int ipm_set_enabled(struct device *ipmdev, int enable);
207207

0 commit comments

Comments
 (0)