Document ftdi_eeprom_initdefaults Add return value to ftdi_eeprom_initdefaults
[libftdi] / src / ftdi.h
index df754e3..94d16dc 100644 (file)
@@ -469,8 +469,8 @@ extern "C"
     int ftdi_set_event_char(struct ftdi_context *ftdi, unsigned char eventch, unsigned char enable);
     int ftdi_set_error_char(struct ftdi_context *ftdi, unsigned char errorch, unsigned char enable);
 
-    /* init and build eeprom from ftdi_eeprom structure */
-    void ftdi_eeprom_initdefaults(struct ftdi_context *ftdi, 
+    /* init eeprom for the given FTDI type */
+    int ftdi_eeprom_initdefaults(struct ftdi_context *ftdi, 
                                   char * manufacturer, char *product, 
                                   char * serial);
     int ftdi_eeprom_build(struct ftdi_context *ftdi);