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