diff options
author | reinelt <> | 2003-02-22 07:53:10 +0000 |
---|---|---|
committer | reinelt <> | 2003-02-22 07:53:10 +0000 |
commit | 90be5ac59fddad620f66ebc9dc813802cd45a7e3 (patch) | |
tree | 9a0596fed56b4985e15b7d677c43c0bda80fbabb /M50530.c | |
parent | db2a64cd4d6e46a6563181f38da2a0a01f56a559 (diff) | |
download | lcd4linux-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.c | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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 { |