Skip to content
Commit 88b6fc62 authored by Michał Barnaś's avatar Michał Barnaś Committed by Carles Cufí
Browse files

usbc: change type for functions that may return error code



TCPC API functions should be able to inform the caller if the function
is supported and successfully executed. Bool values doesn't allow this
so it is needed to change the type to int.
For is_rx_pending_msg function the return code should conform to
existing error codes, so in case of function being not supported,
the -ENOSYS should be returned. In case of successful execution,
if there is no pending message, the -ENODATA should be returned and
in case of message pending, the value of 0.

Signed-off-by: default avatarMichał Barnaś <mb@semihalf.com>
parent 2e3fcbfa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment