Skip to content

drivers/mtd: rename mtd_default_get_dev() -> mtd_dev_get()#20078

Merged
benpicco merged 3 commits intoRIOT-OS:masterfrom
benpicco:mtd_dev_get
Nov 11, 2023
Merged

drivers/mtd: rename mtd_default_get_dev() -> mtd_dev_get()#20078
benpicco merged 3 commits intoRIOT-OS:masterfrom
benpicco:mtd_dev_get

Conversation

@benpicco
Copy link
Copy Markdown
Contributor

@benpicco benpicco commented Nov 10, 2023

Contribution description

With the introduction of XFA based MTD registration, the canonical way to get an MTD is now via mtd_default_get_dev().

This is a bit awkward as the mtd_default.h purely existed as a workaround for what is now provided by XFA.

Use a better name for the function to indicate that this is now really the only way to get e.g. the first MTD device.

Testing procedure

Issues/PRs references

follow-up to #19465

@github-actions github-actions bot added Area: tests Area: tests and testing framework Area: drivers Area: Device drivers Area: USB Area: Universal Serial Bus Area: sys Area: System labels Nov 10, 2023
@benpicco benpicco added Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Nov 10, 2023
@benpicco benpicco requested review from gschorcht and maribu November 10, 2023 18:28
@riot-ci
Copy link
Copy Markdown

riot-ci commented Nov 10, 2023

Murdock results

✔️ PASSED

c2f93c0 treewide: mtd_default_get_dev() -> mtd_dev_get()

Artifacts

@benpicco benpicco enabled auto-merge November 10, 2023 18:54
@benpicco benpicco added this pull request to the merge queue Nov 10, 2023
Merged via the queue into RIOT-OS:master with commit 5d54e89 Nov 11, 2023
@benpicco benpicco deleted the mtd_dev_get branch November 11, 2023 00:41
mguetschow added a commit to mguetschow/RIOT that referenced this pull request Apr 8, 2025
Lukas-Luger pushed a commit to Lukas-Luger/RIOT that referenced this pull request Apr 14, 2025
AnnsAnns pushed a commit to AnnsAnns/RIOT that referenced this pull request Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: drivers Area: Device drivers Area: sys Area: System Area: tests Area: tests and testing framework Area: USB Area: Universal Serial Bus CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants