linux-kernel-test/drivers/gpio
Anton Vorontsov 8d0aab2f16 gpiolib: dynamic gpio number allocation
If gpio_chip->base is negative during registration, gpiolib performs dynamic
base allocation.  This is useful for devices that aren't always present, such
as GPIOs on hotplugged devices rather than mainboards.  (This behavior was
previously specified but not implemented.)

To avoid using any numbers that may have been explicitly assigned but not yet
registered, this dynamic allocation assigns GPIO numbers from the biggest
number on down, instead of from the smallest on up.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-04-28 08:58:34 -07:00
..
gpiolib.c gpiolib: dynamic gpio number allocation 2008-04-28 08:58:34 -07:00
Kconfig gpio: rename pca953x symbols 2008-02-06 10:41:15 -08:00
Makefile gpio: rename pca953x symbols 2008-02-06 10:41:15 -08:00
mcp23s08.c gpiolib: i2c/spi drivers: handle rmmod better 2008-04-28 08:58:34 -07:00
pca953x.c gpiolib: i2c/spi drivers: handle rmmod better 2008-04-28 08:58:34 -07:00
pcf857x.c gpiolib: i2c/spi drivers: handle rmmod better 2008-04-28 08:58:34 -07:00