mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-26 18:16:26 +00:00
mtd: partitions: turn PART() macro into inline function
We can guard against reorganization of struct mtd_part by using container_of(). We can also make sure we're using the right pointer types by making this a static inline function instead of a macro. Signed-off-by: Brian Norris <computersforpeace@gmail.com>
This commit is contained in:
parent
d121b66d25
commit
2524534dbb
1 changed files with 33 additions and 30 deletions
Loading…
Add table
Add a link
Reference in a new issue