From: Trent Piepho Date: Fri, 23 May 2008 20:04:44 +0000 (-0700) Subject: gpiolib: fix off by one errors X-Git-Tag: v2.6.26-rc4~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bff5fda972dc23bd1806a47c2098ae173585d013;p=pandora-kernel.git 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 Acked-by: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed