Adapted the drivers to do not use a NULL pointer for unsupported functions,

but instead do not assign them.
This commit is contained in:
robijn
2001-10-25 23:39:51 +00:00
parent 43e7dfe7be
commit 26d00dc560
5 changed files with 23 additions and 23 deletions
+6 -6
View File
@@ -251,15 +251,15 @@ sed1520_init (struct lcd_logical_driver *driver, char *args)
driver->icon = sed1520_icon;
driver->draw_frame = sed1520_draw_frame;
// We dont't need init for vbar,hbar and friends.
driver->init_hbar = NULL;
driver->init_vbar = NULL;
driver->init_num = NULL;
//driver->init_hbar = NULL;
//driver->init_vbar = NULL;
//driver->init_num = NULL;
// Neither contrast nor backlight are controllable.
driver->contrast = NULL;
driver->backlight = NULL;
//driver->contrast = NULL;
//driver->backlight = NULL;
// There are some unused input lines that may be used for input,
// but nothing is programmed so far.
driver->getkey = NULL;
//driver->getkey = NULL;
return 200; // 200 is arbitrary. (must be 1 or more)
}