aboutsummaryrefslogtreecommitdiffstats
path: root/display.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2000-03-06 06:04:06 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2000-03-06 06:04:06 +0000
commit164a0b9f9a7efe4c717b38b7b2c13b2e83b6bf66 (patch)
treec29227526b71f99f88185e9c6e9e6ae5b1cc6021 /display.c
parent3d773c59e479921ea9acc1272798dec5a49e9de8 (diff)
downloadlcd4linux-164a0b9f9a7efe4c717b38b7b2c13b2e83b6bf66.tar.gz
[lcd4linux @ 2000-03-06 06:04:06 by reinelt]
minor cleanups git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@4 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to '')
-rw-r--r--display.c32
1 files changed, 30 insertions, 2 deletions
diff --git a/display.c b/display.c
index d154b67..50f926a 100644
--- a/display.c
+++ b/display.c
@@ -1,3 +1,32 @@
+/* $Id: display.c,v 1.2 2000/03/06 06:04:06 reinelt Exp $
+ *
+ * framework for device drivers
+ *
+ * Copyright 1999, 2000 by Michael Reinelt (reinelt@eunet.at)
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *
+ *
+ * $Log: display.c,v $
+ * Revision 1.2 2000/03/06 06:04:06 reinelt
+ *
+ * minor cleanups
+ *
+ *
+ */
+
#include <stdlib.h>
#include <stdio.h>
@@ -20,7 +49,7 @@ int lcd_init (char *display)
for (j=0; Driver[i].Display[j].name[0]; j++) {
if (strcmp (Driver[i].Display[j].name, display)==0) {
Display=&Driver[i].Display[j];
- return Display->init();
+ return Display->init(Display);
}
}
}
@@ -49,7 +78,6 @@ int lcd_flush (void)
}
void main (void) {
- int i, j;
lcd_init ("junk");
lcd_init ("LCD2041");