doc: hwinfo: Clarify return values.
Change the doxygen doc from "negative on error" to -ENOSUP and negative value on driver specific errors. Signed-off-by: Alexander Wachter <alexander@wachter.cloud>
This commit is contained in:
parent
02b630d494
commit
75724bf299
1 changed files with 3 additions and 1 deletions
|
@ -39,7 +39,9 @@ extern "C" {
|
|||
* @param buffer Buffer to write the ID to.
|
||||
* @param length Max length of the buffer.
|
||||
*
|
||||
* @retval size of the device ID copied or negative on error.
|
||||
* @retval size of the device ID copied.
|
||||
* @retval -ENOTSUP if there is no implementation for the particular device.
|
||||
* @retval any negative value on driver specific errors.
|
||||
*/
|
||||
__syscall ssize_t hwinfo_get_device_id(u8_t *buffer, size_t length);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue