temp: Reuse file descriptor if available

This will need to be reviewed at a later date and removed or
modified if possible.

Modify the open behavior to reuse an existing file descriptor if
available.  This allows libusb to reuse the file descriptor used
by the Android USB host.

Also change the search order proc/bus/usb before /dev/bus/usb.

Change-Id: I1d9f29fb7eebe783bbcfac5def59dd59928d975f
Signed-off-by: Hendrik Dahlkamp <hendrik@google.com>
Signed-off-by: Adam Hampson <ahampson@google.com>
1 file changed