[riot-notifications] [RIOT-OS/RIOT] drivers/flashpage: flashpage_page() takes a const argument (#16781)

benpicco notifications at github.com
Fri Aug 27 13:46:57 CEST 2021

The RIOT community cares a lot about code quality.
Therefore, before describing what your contribution is about, we would like
you to make sure that your modifications are compliant with the RIOT
coding conventions, see https://github.com/RIOT-OS/RIOT/wiki/Coding-conventions.

### Contribution description

All addresses to flashpage_page() must be in flash. Flash memory is `const`, therefore this function must also take `const` pointers.

### Testing procedure

Code should still compile.

### Issues/PRs references

Examples: Fixes #1234. See also #5678. Depends on PR #9876.

Please use keywords (e.g., fixes, resolve) with the links to the issues you
resolved, this way they will be automatically closed when your pull request
is merged. See https://help.github.com/articles/closing-issues-using-keywords/.

You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * drivers/flashpage: flashpage_page() takes a const argument

-- File Changes --

    M cpu/stm32/periph/flashpage.c (2)
    M drivers/include/periph/flashpage.h (4)
    M drivers/periph_common/flashpage.c (2)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210827/bc4df661/attachment.htm>

More information about the notifications mailing list