aboutsummaryrefslogtreecommitdiffstats
path: root/M50530.c
diff options
context:
space:
mode:
authorreinelt <>2003-02-22 07:53:10 +0000
committerreinelt <>2003-02-22 07:53:10 +0000
commit90be5ac59fddad620f66ebc9dc813802cd45a7e3 (patch)
tree9a0596fed56b4985e15b7d677c43c0bda80fbabb /M50530.c
parentdb2a64cd4d6e46a6563181f38da2a0a01f56a559 (diff)
downloadlcd4linux-90be5ac59fddad620f66ebc9dc813802cd45a7e3.tar.gz
[lcd4linux @ 2003-02-22 07:53:09 by reinelt]
cfg_get(key,defval)
Diffstat (limited to 'M50530.c')
-rw-r--r--M50530.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/M50530.c b/M50530.c
index 4e12e53..ed64b32 100644
--- a/M50530.c
+++ b/M50530.c
@@ -1,4 +1,4 @@
-/* $Id: M50530.c,v 1.5 2002/08/19 10:51:06 reinelt Exp $
+/* $Id: M50530.c,v 1.6 2003/02/22 07:53:10 reinelt Exp $
*
* driver for display modules based on the M50530 chip
*
@@ -20,6 +20,9 @@
*
*
* $Log: M50530.c,v $
+ * Revision 1.6 2003/02/22 07:53:10 reinelt
+ * cfg_get(key,defval)
+ *
* Revision 1.5 2002/08/19 10:51:06 reinelt
* M50530 driver using new generic bar functions
*
@@ -239,14 +242,14 @@ int M5_init (LCD *Self)
PPdev=NULL;
}
- s=cfg_get ("Port");
+ s=cfg_get ("Port",NULL);
if (s==NULL || *s=='\0') {
error ("M50530: no 'Port' entry in %s", cfg_file());
return -1;
}
PPdev=strdup(s);
- s=cfg_get("Size");
+ s=cfg_get("Size",NULL);
if (s==NULL || *s=='\0') {
error ("M50530: no 'Size' entry in %s", cfg_file());
return -1;
@@ -256,7 +259,7 @@ int M5_init (LCD *Self)
return -1;
}
- s=cfg_get ("GPOs");
+ s=cfg_get ("GPOs",NULL);
if (s==NULL) {
gpos=0;
} else {