[PATCH] chardev: GPIO for SCx200 & PC-8736x: fix gpio_current, use shadow regs
authorJim Cromie <jim.cromie@gmail.com>
Tue, 27 Jun 2006 09:54:24 +0000 (02:54 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 28 Jun 2006 00:32:43 +0000 (17:32 -0700)
commit6cad56fd884b7eb85ae193c94b688fe76680fcbf
tree41f8abbc17063604501a529290c66059638fe2f7
parentf31000e573da052b6b8bcc21faff520b4e2eda7a
[PATCH] chardev: GPIO for SCx200 & PC-8736x: fix gpio_current, use shadow regs

Add a working gpio_current() to pc8736x_gpio.c (the previous implementation
just threw a dev_warn), and fix gpio_change() to use gpio_current() rather
than the incorrect (and temporary) gpio_get().  Initialize shadow-regs so this
all works.

Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/pc8736x_gpio.c