Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ccid_usb: Simplify get_end_points/get_endpoints #132

Closed
wants to merge 2 commits into from

Conversation

drinkcat
Copy link
Contributor

@drinkcat drinkcat commented Apr 8, 2024

The caller already has the structures/data ready, so let's not make superfluous calls to get_ccid_* functions.

The (unique) caller of get_endpoints already has a pointer to
usb_interface. Just pass that to get_endpoints directly instead
of calling get_ccid_usb_interface again.
The caller of get_data_rates already has a copy of the device
decriptor. No need to call
get_ccid_device_descriptor(get_ccid_usb_interface(desc, &num))
again.
@LudovicRousseau
Copy link
Owner

Merged.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants