Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Apr 2019 00:58:43 +0000 (UTC)
From:      Ian Lepore <ian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r346938 - stable/12/sys/dev/gpio
Message-ID:  <201904300058.x3U0whD2048244@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ian
Date: Tue Apr 30 00:58:43 2019
New Revision: 346938
URL: https://svnweb.freebsd.org/changeset/base/346938

Log:
  MFC r346713:
  
  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>

Modified:
  stable/12/sys/dev/gpio/gpioc.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/gpio/gpioc.c
==============================================================================
--- stable/12/sys/dev/gpio/gpioc.c	Tue Apr 30 00:54:31 2019	(r346937)
+++ stable/12/sys/dev/gpio/gpioc.c	Tue Apr 30 00:58:43 2019	(r346938)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904300058.x3U0whD2048244>