Deleted Added
full compact
29c29
< __FBSDID("$FreeBSD: head/sys/arm/broadcom/bcm2835/bcm2835_gpio.c 274669 2014-11-18 17:07:02Z imp $");
---
> __FBSDID("$FreeBSD: head/sys/arm/broadcom/bcm2835/bcm2835_gpio.c 274670 2014-11-18 17:22:08Z loos $");
400,413d399
< /* Check for unwanted flags. */
< if ((flags & sc->sc_gpio_pins[i].gp_caps) != flags)
< return (EINVAL);
<
< /* Can't mix input/output together. */
< if ((flags & (GPIO_PIN_INPUT|GPIO_PIN_OUTPUT)) ==
< (GPIO_PIN_INPUT|GPIO_PIN_OUTPUT))
< return (EINVAL);
<
< /* Can't mix pull-up/pull-down together. */
< if ((flags & (GPIO_PIN_PULLUP|GPIO_PIN_PULLDOWN)) ==
< (GPIO_PIN_PULLUP|GPIO_PIN_PULLDOWN))
< return (EINVAL);
<