summaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorTrent Piepho2008-05-23 22:04:44 +0200
committerLinus Torvalds2008-05-24 18:56:11 +0200
commitbff5fda972dc23bd1806a47c2098ae173585d013 (patch)
treed26a3e5f18ee91b25dc4da7f1d1d0f022dd8d72d /drivers/char
parentgpio: mcp23s08 debug fix (diff)
downloadkernel-qcow2-linux-bff5fda972dc23bd1806a47c2098ae173585d013.tar.gz
kernel-qcow2-linux-bff5fda972dc23bd1806a47c2098ae173585d013.tar.xz
kernel-qcow2-linux-bff5fda972dc23bd1806a47c2098ae173585d013.zip
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>
Diffstat (limited to 'drivers/char')
0 files changed, 0 insertions, 0 deletions