Skip to content
Commit 1967d1e6 authored by Yong Cong Sin's avatar Yong Cong Sin Committed by Dan Kalowsky
Browse files

drivers: syscon: do not assume that a function isn't supported



When a function pointer is `NULL`, it could be that the underlying
hardware doesn't support it, or it isn't implemented.

If a function isn't supported by the hardware, its driver should
return `-ENOTSUP`, the API layer should return `-ENOSYS` when a
function isn't implemented.

Signed-off-by: default avatarYong Cong Sin <yongcong.sin@gmail.com>
parent 9696765b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment