X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=src%2Fftdi.c;h=e234fd1940f5e0626a4b994725eaf60566b854d6;hp=908d420f08ddeb4bb39b8277bc6f2a6656b977bf;hb=0ce2f5faf4adb83fa0544fdc98d8b7d45e7f9ac2;hpb=c4446c36e82b9f2b04f31f616852c4414c98c5e8 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;