svn commit: r276168 - head/sys/dev/gpio

Luiz Otavio O Souza loos at FreeBSD.org
Wed Dec 24 03:24:51 UTC 2014


Author: loos
Date: Wed Dec 24 03:24:50 2014
New Revision: 276168
URL: https://svnweb.freebsd.org/changeset/base/276168

Log:
  Improves the GPIO API description a little bit.
  
  gpio_pin_max must return the maximum supported pin number and not the total
  number of pins on the system.
  
  PR:		157070
  Submitted by:	brix

Modified:
  head/sys/dev/gpio/gpio_if.m

Modified: head/sys/dev/gpio/gpio_if.m
==============================================================================
--- head/sys/dev/gpio/gpio_if.m	Wed Dec 24 03:13:16 2014	(r276167)
+++ head/sys/dev/gpio/gpio_if.m	Wed Dec 24 03:24:50 2014	(r276168)
@@ -56,11 +56,11 @@ HEADER {
 };
 
 #
-# Get total number of pins
+# Get maximum pin number
 #
 METHOD int pin_max {
 	device_t dev;
-	int *npins;
+	int *maxpin;
 };
 
 #


More information about the svn-src-head mailing list