gpiolib: Ensure struct gpio is always defined
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 24 Oct 2011 13:24:10 +0000 (15:24 +0200)
committerGrant Likely <grant.likely@secretlab.ca>
Mon, 24 Oct 2011 14:04:06 +0000 (16:04 +0200)
commitfeb836992437c9b8b53988da30880e0e6e93ac8b
tree1fa88109514310e32112acd017c1c506d13444b5
parent825de2e9007439977aed63771db570fc2235e8cd
gpiolib: Ensure struct gpio is always defined

Currently struct gpio is only defined when using gpiolib which makes the
stub gpio_request_array() much less useful in drivers than is ideal as
they can't work with struct gpio.  Since there are no other definitions
in kernel instead make the define always available no matter if gpiolib
is selectable or selected, ensuring that drivers can always use the
type.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
include/asm-generic/gpio.h
include/linux/gpio.h