aboutsummaryrefslogtreecommitdiff
path: root/pickit2_spi.c
diff options
context:
space:
mode:
authorNico Huber <nico.huber@secunet.com>2016-02-18 21:42:49 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2016-02-18 21:42:49 +0000
commit0c96512e7a14b008a7834153330f59160c4137d4 (patch)
treee1ec42d9aebfb5615ddedbbc0c141562610b7fd5 /pickit2_spi.c
parent3bec0d385dec2b6c7a7df0e5c0cd03803c059a91 (diff)
dediprog: port to libusb1 and use asynchronous bulk transfers for reading
This patch is based on Nico Huber's original version that was rebased by David Hendricks for Chromium OS in Change-Id: I84384b9d8ed53911657cf2293733531a6e11fd23 Corresponding to flashrom svn r1929. Signed-off-by: Nico Huber <nico.huber@secunet.com> Signed-off-by: David Hendricks <dhendrix@chromium.org> Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Diffstat (limited to 'pickit2_spi.c')
-rw-r--r--pickit2_spi.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/pickit2_spi.c b/pickit2_spi.c
index fb03b02..e5f7bed 100644
--- a/pickit2_spi.c
+++ b/pickit2_spi.c
@@ -95,9 +95,8 @@ static usb_dev_handle *pickit2_handle;
#define SCR_VDD_OFF 0xFE
#define SCR_VDD_ON 0xFF
-/* Copied from dediprog.c */
-/* Might be useful for other USB devices as well. static for now. */
-/* device parameter allows user to specify one device of multiple installed */
+/* Might be useful for other USB devices as well. static for now.
+ * device parameter allows user to specify one device of multiple installed */
static struct usb_device *get_device_by_vid_pid(uint16_t vid, uint16_t pid, unsigned int device)
{
struct usb_bus *bus;