Teach all drivers to use local report.h instead of shared/report.h.

Remove all references to shared/debug.h as well (was unused in all cases).
This commit is contained in:
mmdolze
2009-09-14 18:36:44 +00:00
parent de8278a398
commit 6e781ed0a0
10 changed files with 9 additions and 23 deletions
+1
View File
@@ -7,6 +7,7 @@ Key:
v.0.5dev (ongoing development)
* Update driver includes and LDFLAGS (fixed glk and bayrad binding error)
* Modify all drivers to use server/drivers/report.h instead of shared/report.h
v0.5.3
+ lcdexec: notification when called program finishes
-2
View File
@@ -33,8 +33,6 @@
#endif
#include "lcd.h"
#include "shared/debug.h"
//#define DEBUG
#include "report.h"
#include "glcdlib.h"
+1 -1
View File
@@ -54,7 +54,7 @@
#include "hd44780-low.h"
#include "shared/str.h"
#include "shared/report.h"
#include "report.h"
#include <stdio.h>
#include <string.h>
#include <errno.h>
+1 -1
View File
@@ -19,7 +19,7 @@
*/
#include "hd44780-usblcd.h"
#include "shared/report.h"
#include "report.h"
#include <stdlib.h>
#include <stdio.h>
+1 -2
View File
@@ -4,8 +4,7 @@
#include "lcd.h" /* for lcd_logical_driver */
#include "hd44780-low.h" /* for HD44780_functions */
// initialise this particular driver, args is probably not used but keep
// for consistency
// initialise this particular driver
int hd_init_usblcd(Driver *drvthis);
#endif
+2 -4
View File
@@ -42,8 +42,6 @@
#include "lcd.h"
#include "lcd_lib.h"
#include "shared/debug.h"
//#define DEBUG
#include "report.h"
@@ -123,12 +121,12 @@ MODULE_EXPORT int imon_init (Driver *drvthis)
// Alocate, initialize and store private p
p = (PrivateData *) calloc(1, sizeof(PrivateData));
if (p == NULL) {
debug(RPT_ERR, "%s: failed to allocate private data", drvthis->name);
report(RPT_ERR, "%s: failed to allocate private data", drvthis->name);
return -1;
}
if (drvthis->store_private_ptr(drvthis, p)) {
debug(RPT_ERR, "%s: failed to store private data pointer", drvthis->name);
report(RPT_ERR, "%s: failed to store private data pointer", drvthis->name);
return -1;
}
+2 -3
View File
@@ -50,7 +50,6 @@
#include "lcd.h"
#include "lcd_lib.h"
#include "shared/debug.h"
#include "report.h"
/* Defines a 6x8 font based on ISO 8859-15 */
@@ -278,11 +277,11 @@ imonlcd_init(Driver *drvthis)
/* Allocate, initialize and store private p */
p = (PrivateData *) calloc(1, sizeof(PrivateData));
if (p == NULL) {
debug(RPT_ERR, "%s: failed to allocate private data", drvthis->name);
report(RPT_ERR, "%s: failed to allocate private data", drvthis->name);
return -1;
}
if (drvthis->store_private_ptr(drvthis, p)) {
debug(RPT_ERR, "%s: failed to store private data pointer", drvthis->name);
report(RPT_ERR, "%s: failed to store private data pointer", drvthis->name);
return -1;
}
+1 -3
View File
@@ -21,15 +21,13 @@
#define __u32 unsigned int
#define __u8 unsigned char
#include "shared/debug.h"
#include "shared/str.h"
#define NAME_LENGTH 128
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "shared/str.h"
#include "lcd.h"
#include "irmanin.h"
#include "report.h"
-5
View File
@@ -21,8 +21,6 @@
#include <unistd.h>
#include <string.h>
#include <errno.h>
//#include <asm/io.h>
//#include <sys/perm.h>
#ifdef HAVE_CONFIG_H
# include "config.h"
@@ -32,14 +30,11 @@
#include "t6963.h"
#include "t6963_font.h"
#include "shared/debug.h"
#include "report.h"
#include "lcd_lib.h"
#include "port.h"
//extern int debug_level;
/** private data for the \c t6963 driver */
typedef struct t6963_private_data {
u16 port;
-2
View File
@@ -22,11 +22,9 @@
#include "lcd.h"
#include "wirz-sli.h"
//#include "drv_base.h"
#include "report.h"
#include "lcd_lib.h"
//#include "shared/debug.h"
#include "shared/str.h"
#define SLI_DEFAULT_DEVICE "/dev/lcd"