ftdi_eeprom: added --device option to specify FTDI device
authorRobin Haberkorn <haberkorn@metratec.com>
Tue, 27 Jan 2015 21:53:41 +0000 (22:53 +0100)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Wed, 4 Mar 2015 15:19:59 +0000 (16:19 +0100)
commitf6ac3c2570f8e9c4d63ad3cb287404c7b0b91223
treeb39590fe26d96305d899460073b53758d3eb4cdf
parent1162549f619aad91ba30008b64827b3716d15b76
ftdi_eeprom: added --device option to specify FTDI device

 * previously, the device could only be selected using the "vendor_id",
   "product_id" and "default_pid" config file options.
   This did not guarantee that a device could be uniquely identified
   (e.g. there could be multiple devices with the same VID/PID).
   Also this severely limited the possibilities of changing a device's
   VID/PID using ftdi_eeprom - this only worked if the device happened
   to have FTDI's VID 0x0403 and a PID equal to "default_pid".
 * If the --device option is omitted, ftdi_eeprom defaults to the
   old behaviour of using the config file options.
 * The order of arguments is insignificant. If multiple
   'command' options (--read-eeprom, --erase-eeprom, --flash-eeprom)
   are given, only the last one will determine the action.
ftdi_eeprom/main.c