basic_mmio_gpio: allow overriding number of gpio
authorJamie Iles <jamie@jamieiles.com>
Fri, 20 May 2011 06:40:15 +0000 (00:40 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Fri, 20 May 2011 06:40:15 +0000 (00:40 -0600)
commit924e7a9fc6da124588e27c611841d07047c157b4
tree7f886a9e10666ba3fc0e39b1976e50eb52274178
parent4ddb8ae217ad2aae888d00d97c5160f677dd38f4
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>
drivers/gpio/basic_mmio_gpio.c
include/linux/basic_mmio_gpio.h