diff options
author | Heiner Kallweit <[email protected]> | 2019-05-16 23:13:08 +0200 |
---|---|---|
committer | Wolfram Sang <[email protected]> | 2019-05-17 19:28:31 +0200 |
commit | 7159dbdae3c58d0200ae2550fab977a19a3c497a (patch) | |
tree | b6ec458fe3934e5dea9bf9345e49a26bd4c7e22d /scripts | |
parent | a6a4b66bd8f41922c543f7a820c66ed59c25995e (diff) |
i2c: core: improve return value handling of i2c_new_device and i2c_new_dummy
Currently i2c_new_device and i2c_new_dummy return just NULL in error
case although they have more error details internally. Therefore move
the functionality into new functions returning detailed errors and
add wrappers for compatibility with the current API.
This allows to use these functions with detailed error codes within
the i2c core or for API extensions.
Signed-off-by: Heiner Kallweit <[email protected]>
[wsa: rename new functions and fix minor kdoc issues]
Signed-off-by: Wolfram Sang <[email protected]>
Reviewed-by: Peter Rosin <[email protected]>
Reviewed-by: Kieran Bingham <[email protected]>
Reviewed-by: Bartosz Golaszewski <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions