Commit 2524534d authored by Brian Norris's avatar Brian Norris
Browse files

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: default avatarBrian Norris <computersforpeace@gmail.com>
parent d121b66d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment