commit | f44b4bf61417163ba810983cf9fc2e3c61a1d509 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sun Sep 17 16:54:53 2017 -0600 |
committer | Simon Glass <sjg@chromium.org> | Sun Oct 08 20:41:09 2017 -0600 |
tree | b4bad5c9afc2ca9dbd59778e306e11b4a34786c2 | |
parent | 87f4cb736dd46c4b91b4bd398357e8216b547fbd [diff] |
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: Simon Glass <sjg@chromium.org> Reported-by: Adam Ford <aford173@gmail.com>