As we may call libusb_get_max_iso_packet_size() for
all types of endpoints and all results are correct let's
just drop 3rd param from our API function so we don't confuse
our users.
Change-Id: I6c4075e85728449a4e308af024cea18a35a46371
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
void libhusb_free_devices(libhusb_device **list, int unref_devices);
-int libhusb_get_max_packet_size(libhusb_device *dev, uint8_t endpoint, int iso);
+int libhusb_get_max_packet_size(libhusb_device *dev, uint8_t endpoint);
uint8_t libhusb_get_bus_number(libhusb_device *dev);
free(list);
}
-int libhusb_get_max_packet_size(libhusb_device *dev, uint8_t endpoint, int iso)
+int libhusb_get_max_packet_size(libhusb_device *dev, uint8_t endpoint)
{
int ret;
assert(dev);
- if (iso == 1) {
- ret = libusb_get_max_iso_packet_size(dev->lusb_dev, endpoint);
- }
- else {
- ret = libusb_get_max_packet_size(dev->lusb_dev, endpoint);
- }
-
+ ret = libusb_get_max_iso_packet_size(dev->lusb_dev, endpoint);
if (ret < 0)
ret = usb_device_get_error_num(ret);