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@yahoo.co.jp>
This commit is contained in:
Ian Lepore 2019-04-25 22:27:56 +00:00
parent af248a7cee
commit 20105d31ee
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=346713

View File

@ -192,7 +192,7 @@ gpioc_ioctl(struct cdev *cdev, u_long cmd, caddr_t arg, int fflag,
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;