darwin: add a comment on how the bus number is calculated
authorNathan Hjelm <hjelmn@google.com>
Tue, 20 Jul 2021 21:44:59 +0000 (15:44 -0600)
committerNathan Hjelm <hjelmn@google.com>
Tue, 20 Jul 2021 21:44:59 +0000 (15:44 -0600)
commit47aecbcaa299e304728ed275e8aacdc68306a234
tree90eae7aeecb5aa283ee222659f6c32f89926e85c
parent7ec91f1a538b684ae621cd8fee96559c93a4cf7d
darwin: add a comment on how the bus number is calculated

This commit adds a comment about the bus number calculation to indicate how the
location ID is constructed and why libusb is using the top byte for the bus
number. It also indicates that the bus number starts at 0.

Signed-off-by: Nathan Hjelm <hjelmn@google.com>
libusb/os/darwin_usb.c
libusb/version_nano.h