FT2232: lookup and save layout just once
commitc23d4596d2239bdbba080499de837f53e0c89e59
authorDavid Brownell <dbrownell@users.sourceforge.net>
Sun, 14 Mar 2010 20:10:26 +0000 (14 13:10 -0700)
committerDavid Brownell <dbrownell@users.sourceforge.net>
Sun, 14 Mar 2010 20:10:26 +0000 (14 13:10 -0700)
tree1bdf04ff20effe287e89088d58557bc6685809df
parent763013f15e348d760e193da807c5bd79437ab8c7
FT2232: lookup and save layout just once

Streamline use of the layout:  have the "ft2232_layout" command
look it up and save the result, instead of having a few different
chunks of code looking it up later, and saving just its name (which
is already part of the layout).  This

   - is cleaner
   - reports errors sooner
   - facilitates earlier adapter-specific setup
   - removes unused "default to "usbjtag" logic

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
src/jtag/drivers/ft2232.c