Skip to content
Snippets Groups Projects
Commit 7c84319a authored by Simon Glass's avatar Simon Glass
Browse files

dm: gpio: Correct use of -ENODEV in drivers


In U-Boot -ENODEV means that there is no device. When there is a problem
with the device, drivers should return an error like -ENXIO or -EREMOTEIO.
When the device tree properties cannot be read correct , they should
return -EINVAL.

Update various GPIO drivers to follow this rule, to help with consistency
for future driver writers.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Reported-by: default avatarAdam Ford <aford173@gmail.com>
parent 4d686041
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment