Update drivers to return 0 (zero) on success.

This commit is contained in:
mmdolze
2009-07-07 21:36:37 +00:00
parent 2e31f1b769
commit e33ba1b41b
21 changed files with 23 additions and 25 deletions
+1 -1
View File
@@ -640,7 +640,7 @@ CwLnx_init(Driver *drvthis)
report(RPT_DEBUG, "%s: init() done", drvthis->name);
return 1;
return 0;
}
+1 -1
View File
@@ -461,7 +461,7 @@ MtxOrb_init (Driver *drvthis)
report(RPT_DEBUG, "%s: init() done", drvthis->name);
return 1;
return 0;
}
+1 -1
View File
@@ -199,7 +199,7 @@ MODULE_EXPORT int glcdlib_init (Driver *drvthis)
report(RPT_DEBUG, "%s: init() done", drvthis->name);
return 1;
return 0;
}
+1 -1
View File
@@ -464,7 +464,7 @@ HD44780_init(Driver *drvthis)
HD44780_flush(drvthis);
sleep(2);
return 1;
return 0;
}
+1 -1
View File
@@ -170,7 +170,7 @@ i2500vfd_init (Driver *drvthis)
ftdi_write_data (&p->ftdi, &c, 1);
report(RPT_DEBUG, "%s: init() done", drvthis->name);
return 1;
return 0;
}
/////////////////////////////////////////////////////////////////
+1 -1
View File
@@ -145,7 +145,7 @@ icp_a106_init (Driver *drvthis)
report(RPT_DEBUG, "%s: init() done", drvthis->name);
return 1;
return 0;
}
/////////////////////////////////////////////////////////////////
+3 -5
View File
@@ -110,13 +110,11 @@ typedef struct imon_private_data {
} PrivateData;
/**
* driver initialization
*/
/**
* Initialize the driver.
* \param drvthis Pointer to driver structure.
* \return Information of success (1) or failure (< 0).
* \retval 0 Success.
* \retval <0 Error.
*/
MODULE_EXPORT int imon_init (Driver *drvthis)
{
@@ -178,7 +176,7 @@ MODULE_EXPORT int imon_init (Driver *drvthis)
report(RPT_DEBUG, "%s: init() done", drvthis->name);
return 1;
return 0;
}
+1 -1
View File
@@ -146,7 +146,7 @@ irmanin_init (Driver *drvthis)
report(RPT_DEBUG, "%s: init() done", drvthis->name);
return 1; // return success
return 0; // return success
}
+1 -1
View File
@@ -157,7 +157,7 @@ MODULE_EXPORT int irtrans_init(Driver *drvthis)
report(RPT_DEBUG, "%s: init() done", drvthis->name);
return 1;
return 0;
}
/////////////////////////////////////////////////////////////////
+1 -1
View File
@@ -185,7 +185,7 @@ LB216_init(Driver *drvthis)
report(RPT_DEBUG, "%s: init() done", drvthis->name);
return 1;
return 0;
}
+1 -1
View File
@@ -233,7 +233,7 @@ lcdm001_init (Driver *drvthis)
report(RPT_DEBUG, "%s: init() done", drvthis->name);
return 1;
return 0;
}
/* Below here, you may use either lcd.framebuf or driver->framebuf..
+1 -1
View File
@@ -240,7 +240,7 @@ ms6931_init (Driver *drvthis)
report(RPT_DEBUG, "%s: init() done", drvthis->name);
return 1;
return 0;
}
/////////////////////////////////////////////////////////////////
+1 -1
View File
@@ -224,7 +224,7 @@ MTC_S16209X_init (Driver *drvthis)
report(RPT_DEBUG, "%s: init() done", drvthis->name);
return 1;
return 0;
}
+1 -1
View File
@@ -97,7 +97,7 @@ mx5000_init (Driver *drvthis, char *args)
report(RPT_DEBUG, "%s: init() done", drvthis->name);
return 1;
return 0;
}
+1 -1
View File
@@ -207,7 +207,7 @@ sed1520_init (Driver *drvthis)
report(RPT_DEBUG, "%s: init() done", drvthis->name);
return 1;
return 0;
}
/////////////////////////////////////////////////////////////////
+1 -1
View File
@@ -370,7 +370,7 @@ serialPOS_init (Driver *drvthis)
report(RPT_DEBUG, "%s: init() done", drvthis->name);
return 1;
return 0;
}
+1 -1
View File
@@ -414,7 +414,7 @@ stv5730_init (Driver *drvthis)
report(RPT_DEBUG, "%s: init() done", drvthis->name);
return 1;
return 0;
}
/////////////////////////////////////////////////////////////////
+1 -1
View File
@@ -210,7 +210,7 @@ t6963_init (Driver *drvthis)
report(RPT_DEBUG, "%s: init() done", drvthis->name);
return 1; // return success
return 0; // return success
}
// Below here, you may use either lcd.framebuf or driver->framebuf..
+1 -1
View File
@@ -103,7 +103,7 @@ text_init (Driver *drvthis)
report(RPT_DEBUG, "%s: init() done", drvthis->name);
return 1;
return 0;
}
+1 -1
View File
@@ -178,7 +178,7 @@ tyan_lcdm_init (Driver *drvthis, char *args)
report(RPT_DEBUG, "%s: init() done", drvthis->name);
return 1;
return 0;
}
+1 -1
View File
@@ -165,7 +165,7 @@ sli_init (Driver *drvthis)
report(RPT_DEBUG, "%s: init() done", drvthis->name);
return 1;
return 0;
}
/////////////////////////////////////////////////////////////////