aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--drv_generic_gpio.c6
-rw-r--r--widget_gpo.c3
-rw-r--r--widget_gpo.h2
3 files changed, 4 insertions, 7 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);
diff --git a/widget_gpo.c b/widget_gpo.c
index 4b92571..3ac7a4e 100644
--- a/widget_gpo.c
+++ b/widget_gpo.c
@@ -59,9 +59,6 @@ void widget_gpo_update(void *Self)
property_eval(&GPO->expression);
property_eval(&GPO->update);
- GPO->num = W->row;
- GPO->val = P2N(&GPO->expression);
-
/* finally, draw it! */
if (W->class->draw)
W->class->draw(W);
diff --git a/widget_gpo.h b/widget_gpo.h
index 6f8e155..3ee8905 100644
--- a/widget_gpo.h
+++ b/widget_gpo.h
@@ -33,8 +33,6 @@
typedef struct WIDGET_GPO {
PROPERTY expression; /* main GPO expression */
PROPERTY update; /* update interval (msec) */
- int num; /* GPO number */
- int val; /* GPO value */
} WIDGET_GPO;