svn commit: r266119 - head/sys/arm/freescale/vybrid
Ruslan Bukin
br at FreeBSD.org
Thu May 15 10:27:18 UTC 2014
On Thu, May 15, 2014 at 10:07:00AM +0000, Ruslan Bukin wrote:
> Modified: head/sys/arm/freescale/vybrid/vf_gpio.c
> ==============================================================================
> --- head/sys/arm/freescale/vybrid/vf_gpio.c Thu May 15 09:55:21 2014 (r266118)
> +++ head/sys/arm/freescale/vybrid/vf_gpio.c Thu May 15 10:06:59 2014 (r266119)
> @@ -242,7 +242,7 @@ vf_gpio_pin_get(device_t dev, uint32_t p
> return (EINVAL);
>
> GPIO_LOCK(sc);
> - *val = (READ4(sc, GPIO_PDOR(i)) & (1 << (i % 32)));
> + *val = (READ4(sc, GPIO_PDIR(i)) & (1 << (i % 32))) ? 1 : 0;
^^^^
Also use correct register for data input.
More information about the svn-src-head
mailing list