device: Deprecate DEV_* error codes
This patch adds a comment to DEV_* codes definition to inform that these codes are deprecated and we should use codes from errno.h instead. Change-Id: Ia01b83035db5526b2da56ad4a06b2ebab85b0d55 Signed-off-by: Andre Guedes <andre.guedes@intel.com>
This commit is contained in:
parent
25799f045c
commit
0cf74d1755
1 changed files with 5 additions and 1 deletions
|
@ -149,7 +149,11 @@ extern "C" {
|
|||
*/
|
||||
#define DEVICE_DECLARE(name) extern struct device DEVICE_NAME_GET(name)
|
||||
|
||||
/* Common Error Codes devices can provide */
|
||||
/*
|
||||
* DEPRECATED.
|
||||
*
|
||||
* DEV_* error codes are deprecated. Use error codes from errno.h instead.
|
||||
*/
|
||||
#define DEV_OK 0 /* No error */
|
||||
#define DEV_FAIL (-EIO) /* General operation failure */
|
||||
#define DEV_INVALID_OP (-ENOTSUP) /* Invalid operation */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue