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
+7 -7
View File
@@ -460,20 +460,20 @@ stv5730_init (struct lcd_logical_driver *driver, char *args)
driver->flush = stv5730_flush;
driver->flush_box = stv5730_flush_box;
// We dont't have any programmable chars.
driver->set_char = NULL;
//driver->set_char = NULL;
driver->icon = stv5730_icon;
driver->draw_frame = stv5730_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)
}