Home
last modified time | relevance | path

Searched hist:"7 e26fe1f05bb05ce6e0f95b9a44ada2a21d53dd3" (Results 1 – 1 of 1) sorted by relevance

/rk3399_ARM-atf/include/drivers/io/
H A Dio_storage.h7e26fe1f05bb05ce6e0f95b9a44ada2a21d53dd3 Thu Oct 01 16:55:11 UTC 2015 Juan Castillo <jcastillo.devel@gmail.com> IO Framework: use standard errno codes as return values

This patch redefines the values of IO_FAIL, IO_NOT_SUPPORTED and
IO_RESOURCES_EXHAUSTED to match the corresponding definitions in
errno.h:

#define IO_FAIL (-ENOENT)
#define IO_NOT_SUPPORTED (-ENODEV)
#define IO_RESOURCES_EXHAUSTED (-ENOMEM)

NOTE: please note that the IO_FAIL, IO_NOT_SUPPORTED and
IO_RESOURCES_EXHAUSTED definitions are considered deprecated
and their usage should be avoided. Callers should rely on errno.h
definitions when checking the return values of IO functions.

Change-Id: Ic8491aa43384b6ee44951ebfc053a3ded16a80be