aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/basic_mmio_gpio.h
diff options
context:
space:
mode:
authorJamie Iles <jamie@jamieiles.com>2011-05-20 00:40:15 -0600
committerGrant Likely <grant.likely@secretlab.ca>2011-05-20 00:40:15 -0600
commit924e7a9fc6da124588e27c611841d07047c157b4 (patch)
tree7f886a9e10666ba3fc0e39b1976e50eb52274178 /include/linux/basic_mmio_gpio.h
parentbasic_mmio_gpio: convert to platform_{get,set}_drvdata() (diff)
downloadlinux-dev-924e7a9fc6da124588e27c611841d07047c157b4.tar.xz
linux-dev-924e7a9fc6da124588e27c611841d07047c157b4.zip
basic_mmio_gpio: allow overriding number of gpio
Some platforms may have a number of GPIO that is less than the register width of the peripheral. Signed-off-by: Jamie Iles <jamie@jamieiles.com> Acked-by: Anton Vorontsov <cbouatmailru@gmail.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'include/linux/basic_mmio_gpio.h')
-rw-r--r--include/linux/basic_mmio_gpio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/basic_mmio_gpio.h b/include/linux/basic_mmio_gpio.h
index 198087a16fc4..f23ec73b944b 100644
--- a/include/linux/basic_mmio_gpio.h
+++ b/include/linux/basic_mmio_gpio.h
@@ -15,6 +15,7 @@
struct bgpio_pdata {
int base;
+ int ngpio;
};
#endif /* __BASIC_MMIO_GPIO_H */