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>
This commit is contained in:
Jamie Iles
2011-05-20 00:40:15 -06:00
committed by Grant Likely
parent 4ddb8ae217
commit 924e7a9fc6
2 changed files with 13 additions and 6 deletions

View File

@@ -15,6 +15,7 @@
struct bgpio_pdata {
int base;
int ngpio;
};
#endif /* __BASIC_MMIO_GPIO_H */