From 0bac52c1cc1c4a0e100dd2eef865d7e9a4821c21 Mon Sep 17 00:00:00 2001 From: Luiz Otavio O Souza Date: Wed, 24 Dec 2014 03:24:50 +0000 Subject: [PATCH] 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 --- sys/dev/gpio/gpio_if.m | 4 ++-- 1 file 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; }; #