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. Change-Id: I6b8f826f6d90dffca55f4d0d5da744b74a39f29a Signed-off-by: Simon Glass <sjg@chromium.org> Reported-by: Adam Ford <aford173@gmail.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 7c84319af9c76084f50f3f2b97545bfa05f3971d) |
||
|---|---|---|
| .. | ||
| muxes | ||
| Kconfig | ||
| Makefile | ||
| adi_i2c.c | ||
| ast_i2c.c | ||
| ast_i2c.h | ||
| at91_i2c.c | ||
| at91_i2c.h | ||
| cros_ec_ldo.c | ||
| cros_ec_tunnel.c | ||
| davinci_i2c.c | ||
| davinci_i2c.h | ||
| designware_i2c.c | ||
| designware_i2c.h | ||
| exynos_hs_i2c.c | ||
| fsl_i2c.c | ||
| fti2c010.c | ||
| fti2c010.h | ||
| i2c-cdns.c | ||
| i2c-emul-uclass.c | ||
| i2c-gpio.c | ||
| i2c-uclass-compat.c | ||
| i2c-uclass.c | ||
| i2c-uniphier-f.c | ||
| i2c-uniphier.c | ||
| i2c_core.c | ||
| ihs_i2c.c | ||
| imx_lpi2c.c | ||
| intel_i2c.c | ||
| kona_i2c.c | ||
| lpc32xx_i2c.c | ||
| mv_i2c.c | ||
| mv_i2c.h | ||
| mvtwsi.c | ||
| mxc_i2c.c | ||
| mxs_i2c.c | ||
| omap24xx_i2c.c | ||
| omap24xx_i2c.h | ||
| rcar_i2c.c | ||
| rk_i2c.c | ||
| s3c24x0_i2c.c | ||
| s3c24x0_i2c.h | ||
| sandbox_i2c.c | ||
| sh_i2c.c | ||
| sh_sh7734_i2c.c | ||
| soft_i2c.c | ||
| stm32f7_i2c.c | ||
| tegra186_bpmp_i2c.c | ||
| tegra_i2c.c | ||
| tsi108_i2c.c | ||
| zynq_i2c.c | ||