-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
usb: device_next: msc: Allow user to sort LUNs
Modify USBD_DEFINE_MSC_LUN() to take in separate id by which the LUNs are sorted. Previously the disk name itself was implicitly used as a sorting key. This is a breaking change to Experimental API. Another advantage of splitting the sorting id from disk name is the ability to use KConfig symbols as disk name. Currently the MMC disk driver uses KConfig symbol CONFIG_MMC_VOLUME_NAME. Mark LUN definitions as static const because the LUNs are ending up in ITERABLE_SECTION_ROM(). Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
- Loading branch information
1 parent
e4236be
commit aa6319d
Showing
2 changed files
with
10 additions
and
9 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