From d0c7529cb9833ede3595051df5599a11fe03be48 Mon Sep 17 00:00:00 2001 From: Reinhard Tartler Date: Thu, 5 Apr 2007 15:25:19 +0200 Subject: import new upstream --- drv_generic_gpio.c | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) (limited to 'drv_generic_gpio.c') diff --git a/drv_generic_gpio.c b/drv_generic_gpio.c index 0bed2d4..b613b4e 100644 --- a/drv_generic_gpio.c +++ b/drv_generic_gpio.c @@ -1,4 +1,5 @@ -/* $Id: drv_generic_gpio.c,v 1.4 2006/01/05 18:56:57 reinelt Exp $ +/* $Id: drv_generic_gpio.c 751 2007-01-20 13:52:43Z michael $ + * $URL: https://ssl.bulix.org/svn/lcd4linux/branches/0.10.1/drv_generic_gpio.c $ * * generic driver helper for GPO's * @@ -21,20 +22,6 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * - * - * $Log: drv_generic_gpio.c,v $ - * Revision 1.4 2006/01/05 18:56:57 reinelt - * more GPO stuff - * - * Revision 1.3 2006/01/03 06:13:45 reinelt - * GPIO's for MatrixOrbital - * - * Revision 1.2 2005/12/20 07:07:44 reinelt - * further work on GPO's, HD44780 GPO support - * - * Revision 1.1 2005/12/18 16:18:36 reinelt - * GPO's added again - * */ /* @@ -232,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); -- cgit v1.2.3