]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r274670, r274671, r276168:
authorloos <loos@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 14 Feb 2015 21:16:19 +0000 (21:16 +0000)
committerloos <loos@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 14 Feb 2015 21:16:19 +0000 (21:16 +0000)
commitb3fbf40c6882d0e38228f9ab569414a30f065bc4
treea2bdaaa92bec82c663e0a841ddfdce165ac2ebf1
parenta4d87c28a4fb8f2e650161b1e3bfaad05d099834
MFC r274670, r274671, r276168:

Moves all the duplicate code to a single function.

Verify for invalid modes and unwanted flags before pass the new flags to
driver.

Make gpio_default_map_gpios() static.  No functional changes.

Improves the GPIO API description a little bit.

gpio_pin_max must return the maximum supported pin number and not the total
number of pins on the system.

git-svn-id: svn://svn.freebsd.org/base/stable/10@278786 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
17 files changed:
sys/arm/allwinner/a10_gpio.c
sys/arm/broadcom/bcm2835/bcm2835_gpio.c
sys/arm/freescale/imx/imx_gpio.c
sys/arm/freescale/vybrid/vf_gpio.c
sys/arm/rockchip/rk30xx_gpio.c
sys/arm/samsung/exynos/exynos5_pad.c
sys/arm/ti/ti_gpio.c
sys/arm/xscale/ixp425/avila_gpio.c
sys/arm/xscale/ixp425/cambria_gpio.c
sys/dev/gpio/gpio_if.m
sys/dev/gpio/gpiobus.c
sys/dev/gpio/gpiobusvar.h
sys/dev/gpio/gpioc.c
sys/mips/atheros/ar71xx_gpio.c
sys/mips/cavium/octeon_gpio.c
sys/mips/rt305x/rt305x_gpio.c
sys/powerpc/wii/wii_gpio.c