u-boot/drivers/gpio
Simon Glass 7c84319af9 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>
2017-10-08 20:41:09 -06:00
..
74x164_gpio.c dm: gpio: Refactor to prepare for live tree support 2017-06-01 07:03:10 -06:00
adi_gpio2.c dm: gpio: Correct use of -ENODEV in drivers 2017-10-08 20:41:09 -06:00
altera_pio.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
at91_gpio.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
atmel_pio4.c dm: gpio: Correct use of -ENODEV in drivers 2017-10-08 20:41:09 -06:00
axp_gpio.c sunxi: axp: Generalize register macros for VBUS drive GPIO 2016-03-31 17:03:52 +02:00
bcm2835_gpio.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
bcm6345_gpio.c dm: bcm6345_gpio: Set proper output level in bcm6345_gpio_direction_output 2017-06-12 08:38:41 -04:00
da8xx_gpio.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
db8500_gpio.c GPIO: Correct doc typo "confguration" -> "configuration" 2017-02-08 16:24:29 -05:00
dwapb_gpio.c dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
gpio-uclass.c gpio: add static to get_function() 2017-07-06 13:09:36 -04:00
gpio-uniphier.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
hi6220_gpio.c dm: gpio: hi6220: Add a hi6220 GPIO driver model driver. 2015-08-12 20:47:58 -04:00
imx_rgpio2p.c dm: gpio: Correct use of -ENODEV in drivers 2017-10-08 20:41:09 -06:00
intel_broadwell_gpio.c dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
intel_ich6_gpio.c dm: core: Replace of_offset with accessor (part 2) 2017-06-01 07:03:04 -06:00
Kconfig Convert CONFIG_CMD_TCA642X to Kconfig 2017-08-11 15:42:00 -04:00
kona_gpio.c gpio: kona: Add Kona gpio driver 2014-02-22 19:30:27 +01:00
kw_gpio.c gpio: make local functions static 2014-10-25 07:02:01 -04:00
lpc32xx_gpio.c dm: Fix up inclusion of common.h 2017-06-01 07:03:03 -06:00
Makefile gpio: Drop sx151x driver 2017-08-11 15:42:00 -04:00
mpc83xx_gpio.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
mpc85xx_gpio.c dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
msm_gpio.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
mvebu_gpio.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
mvgpio.c Update Maintainer and Author's email address 2016-12-27 11:24:17 -05:00
mvgpio.h Update Maintainer and Author's email address 2016-12-27 11:24:17 -05:00
mvmfp.c gpio: mvmfp: support newer MFP bit definitions 2015-04-23 13:59:18 -04:00
mxc_gpio.c dm: gpio: Correct use of -ENODEV in drivers 2017-10-08 20:41:09 -06:00
mxs_gpio.c treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
omap_gpio.c dm: gpio: Correct use of -ENODEV in drivers 2017-10-08 20:41:09 -06:00
pca953x.c Kconfig: Drop CONFIG_CMD_PCA953X_INFO 2017-08-11 15:41:50 -04:00
pca953x_gpio.c dm: gpio: Refactor to prepare for live tree support 2017-06-01 07:03:10 -06:00
pca9698.c treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
pcf8575_gpio.c dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
pic32_gpio.c dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
pm8916_gpio.c dm: gpio: power: Convert pm8916 drivers to livetree 2017-06-01 07:03:17 -06:00
rk_gpio.c rockchip: gpio: remove outdated/misleading comment 2017-09-18 20:40:35 +02:00
s5p_gpio.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
sandbox.c dm: gpio: sandbox: Use dev_read...() functions to access DT 2017-06-01 07:03:10 -06:00
sh_pfc.c gpio: rcar_gen3: Fix GPIO read support 2017-05-22 04:37:30 +09:00
spear_gpio.c gpio: spear_gpio: Fix gpio_set_value() implementation 2014-07-04 21:37:29 +02:00
stm32_gpio.c stm32f1: remove stm32f1 support 2017-08-13 15:17:37 -04:00
stm32f7_gpio.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
sunxi_gpio.c dm: gpio: Refactor to prepare for live tree support 2017-06-01 07:03:10 -06:00
tca642x.c gpio: tca642x: Add the tca642x gpio expander driver 2013-07-30 09:21:42 -04:00
tegra186_gpio.c dm: gpio: Correct use of -ENODEV in drivers 2017-10-08 20:41:09 -06:00
tegra186_gpio_priv.h gpio: add Tegra186 GPIO driver 2016-05-31 09:54:24 -07:00
tegra_gpio.c dm: tegra: gpio: Convert to support livetree 2017-07-28 12:02:47 -06:00
vybrid_gpio.c dm: gpio: vybrid_gpio: Correct driver's use of bind() method 2017-10-08 20:08:19 -06:00
xilinx_gpio.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
zynq_gpio.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00