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>
Showing
- drivers/gpio/adi_gpio2.c 1 addition, 1 deletiondrivers/gpio/adi_gpio2.c
- drivers/gpio/atmel_pio4.c 6 additions, 6 deletionsdrivers/gpio/atmel_pio4.c
- drivers/gpio/imx_rgpio2p.c 1 addition, 1 deletiondrivers/gpio/imx_rgpio2p.c
- drivers/gpio/mxc_gpio.c 1 addition, 1 deletiondrivers/gpio/mxc_gpio.c
- drivers/gpio/omap_gpio.c 1 addition, 1 deletiondrivers/gpio/omap_gpio.c
- drivers/gpio/tegra186_gpio.c 1 addition, 1 deletiondrivers/gpio/tegra186_gpio.c
- drivers/i2c/imx_lpi2c.c 1 addition, 1 deletiondrivers/i2c/imx_lpi2c.c
- drivers/i2c/mxc_i2c.c 6 additions, 6 deletionsdrivers/i2c/mxc_i2c.c
- drivers/i2c/tegra186_bpmp_i2c.c 1 addition, 1 deletiondrivers/i2c/tegra186_bpmp_i2c.c
Loading
Please register or sign in to comment