]> git.karo-electronics.de Git - karo-tx-linux.git/commit
greybus: gpio-gb: fix offset error checking and usage
authorMatt Porter <mporter@linaro.org>
Mon, 20 Oct 2014 10:39:45 +0000 (06:39 -0400)
committerGreg Kroah-Hartman <greg@kroah.com>
Mon, 20 Oct 2014 22:22:32 +0000 (06:22 +0800)
commitff6e0b9c2f05e9f3a06e84af5af2fa8a2c8098f8
treedb0c92e7f6662a3eb7107d065abf66ed29639986
parent42d4a22d6b8e66f1e4d08a643429dbe5321eb458
greybus: gpio-gb: fix offset error checking and usage

Offset (or hwgpio num) is the offset within a gpiochip, not the
unique gpio namespace number. Adjust the error checking and use
of offset in our operation calls to fix this.

Signed-off-by: Matt Porter <mporter@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/gpio-gb.c