]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2c6310dc14d8a2ee75481d11eae97afc914cd0bb
tree1fa88109514310e32112acd017c1c506d13444b5
parent98e4f9fdf9483e129a4082dbbf9267c8833ab267
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