From 90be5ac59fddad620f66ebc9dc813802cd45a7e3 Mon Sep 17 00:00:00 2001 From: reinelt <> Date: Sat, 22 Feb 2003 07:53:10 +0000 Subject: [lcd4linux @ 2003-02-22 07:53:09 by reinelt] cfg_get(key,defval) --- M50530.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'M50530.c') 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 { -- cgit v1.2.3