Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[usb-moded] Add usbmoded_get_modedata() function
Iterating mode lists is cumbersome and might not be safe when done from the worker thread. As an enabler for removing custom list iterators, implement common usbmoded_get_modedata() function for locating mode data by name. Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information
Showing
2 changed files
with
58 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters