libftdi Archives

Subject: Re: how can I get usb port number?

From: Rogier Wolff <R.E.Wolff@xxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Cc: Bryan.Richmond@xxxxxxxxxxx
Date: Mon, 7 Sep 2015 16:49:59 +0200
On Mon, Sep 07, 2015 at 04:11:43PM +0200, Thomas Jarosch wrote:

> The construct
> 
> "(&ftdic)->usb_dev"
> 
> looks a bit unusual.

I first expected that it would need to be: ftdic->usb_dev, however,
maybe that's wrong: the "ftdic" variable is a structure, and not a
pointer to such. You probably pass &ftdic to all the functions.

The normal way of writing that is: 

  ftdic.usb_dev


Roger. 

-- 
** R.E.Wolff@xxxxxxxxxxxx ** http://www.BitWizard.nl/ ** +31-15-2600998 **
**    Delftechpark 26 2628 XH  Delft, The Netherlands. KVK: 27239233    **
*-- BitWizard writes Linux device drivers for any device you may have! --*
The plan was simple, like my brother-in-law Phil. But unlike
Phil, this plan just might work.

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread