commit | 2524534dbb2372a666f30e0da2f97cd7f0d7f76c | [log] [tgz] |
---|---|---|
author | Brian Norris <computersforpeace@gmail.com> | Thu Nov 19 19:28:39 2015 -0800 |
committer | Brian Norris <computersforpeace@gmail.com> | Fri Dec 04 15:28:56 2015 -0800 |
tree | e7ef0eae3314712a3d44e0a7b6c93fdfb8d8dcf9 | |
parent | d121b66d25adfa8b631dc59511ebc1d600ad5111 [diff] |
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>