aboutsummaryrefslogtreecommitdiffstats
path: root/drv_generic_gpio.c
diff options
context:
space:
mode:
authormichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2007-01-20 13:52:43 +0000
committermichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2007-01-20 13:52:43 +0000
commit812fa726f6b3f9f473e60d29d23eaabbf741d3cc (patch)
treeaa698e74426b93cf8109417b6ae801b9670d3a4a /drv_generic_gpio.c
parent38b070776b2e3270e3cf6d353913429e3b11cbc9 (diff)
downloadlcd4linux-812fa726f6b3f9f473e60d29d23eaabbf741d3cc.tar.gz
GPO cleanup
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@751 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'drv_generic_gpio.c')
-rw-r--r--drv_generic_gpio.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drv_generic_gpio.c b/drv_generic_gpio.c
index f2d3a60..0bf919f 100644
--- a/drv_generic_gpio.c
+++ b/drv_generic_gpio.c
@@ -219,8 +219,10 @@ int drv_generic_gpio_get(const int num)
int drv_generic_gpio_draw(WIDGET * W)
{
WIDGET_GPO *gpo = W->data;
- int num = gpo->num;
- int val = gpo->val;
+ int num, val;
+
+ num = W->row;
+ val = P2N(&gpo->expression);
if (num < 0 || num >= GPOS) {
error("%s: gpio_draw(%d): GPO out of range (0..%d)", Driver, num + 1, GPOS);