diff options
author | Anton Vorontsov <avorontsov@ru.mvista.com> | 2008-04-28 05:14:47 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-28 11:58:34 -0400 |
commit | 169b6a7a6e91e1ea32136681b475cbaf2074bf35 (patch) | |
tree | bf29842528e61cb07c581e43acbe3619a25746ab /include/asm-generic | |
parent | 8d0aab2f16c4fa170f32e7a74a52cd0122bbafef (diff) |
gpiochip_reserve()
Add a new function gpiochip_reserve() to reserve ranges of gpios that platform
code has pre-allocated. That is, this marks gpio numbers which will be
claimed by drivers that haven't yet been loaded, and thus are not available
for dynamic gpio number allocation.
[akpm@linux-foundation.org: remove unneeded __must_check]
[david-b@pacbell.net: don't export gpiochip_reserve (section fix)]
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.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')
-rw-r--r-- | include/asm-generic/gpio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h index 464c5b334dc2..ecf675a59d21 100644 --- a/include/asm-generic/gpio.h +++ b/include/asm-generic/gpio.h | |||
@@ -74,6 +74,7 @@ struct gpio_chip { | |||
74 | 74 | ||
75 | extern const char *gpiochip_is_requested(struct gpio_chip *chip, | 75 | extern const char *gpiochip_is_requested(struct gpio_chip *chip, |
76 | unsigned offset); | 76 | unsigned offset); |
77 | extern int __init __must_check gpiochip_reserve(int start, int ngpio); | ||
77 | 78 | ||
78 | /* add/remove chips */ | 79 | /* add/remove chips */ |
79 | extern int gpiochip_add(struct gpio_chip *chip); | 80 | extern int gpiochip_add(struct gpio_chip *chip); |