Cleanup of decode function
[libftdi] / src / ftdi.h
index 6c9baa5..3bb8e7a 100644 (file)
@@ -221,7 +221,7 @@ struct ftdi_eeprom {
 
     /** self powered */
     int self_powered;
-    /** remote wakepu */
+    /** remote wakeup */
     int remote_wakeup;
     /** chip type */
     int BM_type_chip;
@@ -329,7 +329,7 @@ extern "C" {
     /* init and build eeprom from ftdi_eeprom structure */
     void ftdi_eeprom_initdefaults(struct ftdi_eeprom *eeprom);
     int  ftdi_eeprom_build(struct ftdi_eeprom *eeprom, unsigned char *output);
-    void ftdi_eeprom_decode(struct ftdi_eeprom *eeprom, unsigned char *output);
+    void ftdi_eeprom_decode(struct ftdi_eeprom *eeprom, unsigned char *output, int size);
 
     /* "eeprom" needs to be valid 128 byte eeprom (generated by the eeprom generator)
        the checksum of the eeprom is valided */