From: Thomas Jarosch Date: Thu, 27 Jan 2005 12:58:26 +0000 (+0000) Subject: small fixes X-Git-Tag: v0.6~5 X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=commitdiff_plain;h=0ce2f5faf4adb83fa0544fdc98d8b7d45e7f9ac2 small fixes --- diff --git a/src/ftdi.c b/src/ftdi.c index 908d420..e234fd1 100644 --- a/src/ftdi.c +++ b/src/ftdi.c @@ -59,15 +59,15 @@ int ftdi_init(struct ftdi_context *ftdi) /* ftdi_select_interface Call after ftdi_init Open selected channels on a chip, otherwise use first channel - 0: all fine - 1: unknown interface + 0: all fine + -1: unknown interface */ -int ftdi_select_interface(struct ftdi_context *ftdi, enum ftdi_interface interface) +int ftdi_set_interface(struct ftdi_context *ftdi, enum ftdi_interface interface) { switch (interface) { case INTERFACE_ANY: case INTERFACE_A: - /* ftdi_usb_open_desc cares to set the right index, depending on the found chip*/ + /* ftdi_usb_open_desc cares to set the right index, depending on the found chip */ break; case INTERFACE_B: ftdi->interface = 1; diff --git a/src/ftdi.h b/src/ftdi.h index 4134351..5fc20a6 100644 --- a/src/ftdi.h +++ b/src/ftdi.h @@ -135,7 +135,7 @@ extern "C" { #endif int ftdi_init(struct ftdi_context *ftdi); - int ftdi_select_interfae(struct ftdi_context *ftdi, enum ftdi_interface interface); + int ftdi_set_interface(struct ftdi_context *ftdi, enum ftdi_interface interface); void ftdi_deinit(struct ftdi_context *ftdi); void ftdi_set_usbdev (struct ftdi_context *ftdi, usb_dev_handle *usbdev);