svn commit: r346713 - head/sys/dev/gpio
Ian Lepore
ian at FreeBSD.org
Thu Apr 25 22:27:57 UTC 2019
Author: ian
Date: Thu Apr 25 22:27:56 2019
New Revision: 346713
URL: https://svnweb.freebsd.org/changeset/base/346713
Log:
Fix typo: the 4th argument to GPIO_PIN_ACCESS_32 is the set of pins to
change, not the variable used to return the original pin state.
PR: 237378
Reported by: Mori Hiroki <yamori813 at yahoo.co.jp>
Modified:
head/sys/dev/gpio/gpioc.c
Modified: head/sys/dev/gpio/gpioc.c
==============================================================================
--- head/sys/dev/gpio/gpioc.c Thu Apr 25 21:54:32 2019 (r346712)
+++ head/sys/dev/gpio/gpioc.c Thu Apr 25 22:27:56 2019 (r346713)
@@ -192,7 +192,7 @@ gpioc_ioctl(struct cdev *cdev, u_long cmd, caddr_t arg
case GPIOACCESS32:
a32 = (struct gpio_access_32 *)arg;
res = GPIO_PIN_ACCESS_32(sc->sc_pdev, a32->first_pin,
- a32->clear_pins, a32->orig_pins, &a32->orig_pins);
+ a32->clear_pins, a32->change_pins, &a32->orig_pins);
break;
case GPIOCONFIG32:
c32 = (struct gpio_config_32 *)arg;
More information about the svn-src-head
mailing list