mtd: partitions: turn PART() macro into inline function
authorBrian Norris <computersforpeace@gmail.com>
Fri, 20 Nov 2015 03:28:39 +0000 (19:28 -0800)
committerBrian Norris <computersforpeace@gmail.com>
Fri, 4 Dec 2015 23:28:56 +0000 (15:28 -0800)
commit2524534dbb2372a666f30e0da2f97cd7f0d7f76c
treee7ef0eae3314712a3d44e0a7b6c93fdfb8d8dcf9
parentd121b66d25adfa8b631dc59511ebc1d600ad5111
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>
drivers/mtd/mtdpart.c