aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-generic/gpio.h
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-05-26 14:42:18 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2010-05-27 09:12:41 -0700
commit7839ec78214ecf477cc9e2862233b8d9fcf4ec58 (patch)
tree2adf5796b9eb1cbae7196f11c0751add4ede9413 /include/asm-generic/gpio.h
parent7cfe1395b28c472e569db6595a27bfefb161a7bc (diff)
downloadkernel_samsung_smdk4412-7839ec78214ecf477cc9e2862233b8d9fcf4ec58.zip
kernel_samsung_smdk4412-7839ec78214ecf477cc9e2862233b8d9fcf4ec58.tar.gz
kernel_samsung_smdk4412-7839ec78214ecf477cc9e2862233b8d9fcf4ec58.tar.bz2
gpiolib: document that names can contain printk format specifiers
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Cc: David Brownell <david-b@pacbell.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-generic/gpio.h')
-rw-r--r--include/asm-generic/gpio.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h
index bc0c14d..fb1ecf8 100644
--- a/include/asm-generic/gpio.h
+++ b/include/asm-generic/gpio.h
@@ -60,7 +60,9 @@ struct module;
* @names: if set, must be an array of strings to use as alternative
* names for the GPIOs in this chip. Any entry in the array
* may be NULL if there is no alias for the GPIO, however the
- * array must be @ngpio entries long.
+ * array must be @ngpio entries long. A name can include a single printk
+ * format specifier for an unsigned int. It is substituted by the actual
+ * number of the gpio.
*
* A gpio_chip can help platforms abstract various sources of GPIOs so
* they can all be accessed through a common programing interface.