aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuiz Otavio O Souza <loos@FreeBSD.org>2014-12-24 03:24:50 +0000
committerLuiz Otavio O Souza <loos@FreeBSD.org>2014-12-24 03:24:50 +0000
commit0bac52c1cc1c4a0e100dd2eef865d7e9a4821c21 (patch)
tree921f14224faa3e4263f10d5637959deb97a4e7b0
parent0236b3314fc11e041f52cccc0a4ed29724dc0542 (diff)
downloadsrc-0bac52c1cc1c4a0e100dd2eef865d7e9a4821c21.tar.gz
src-0bac52c1cc1c4a0e100dd2eef865d7e9a4821c21.zip
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
Notes
Notes: svn path=/head/; revision=276168
-rw-r--r--sys/dev/gpio/gpio_if.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/gpio/gpio_if.m b/sys/dev/gpio/gpio_if.m
index f0ead651ce8c..adc119e3d924 100644
--- a/sys/dev/gpio/gpio_if.m
+++ b/sys/dev/gpio/gpio_if.m
@@ -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;
};
#