android_kernel_xiaomi_sm8350/drivers/gpio
Trent Piepho bff5fda972 gpiolib: fix off by one errors
The last gpio belonging to a chip is chip->base + chip->ngpios - 1.  Some
places in the code, but not all, forgot the critical minus one.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Acked-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-05-24 09:56:11 -07:00
..
gpiolib.c gpiolib: fix off by one errors 2008-05-24 09:56:11 -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 gpio: mcp23s08 debug fix 2008-05-24 09:56:11 -07:00
pca953x.c gpio: pca953x driver handles pca9554 too 2008-05-24 09:56:11 -07:00
pcf857x.c i2c: Convert most new-style drivers to use module aliasing 2008-04-29 23:11:40 +02:00