lmb: add a max parameter in the struct lmb_region
Add a max parameter in lmb_region struct to handle test in lmb_add_region without using the MAX_LMB_REGIONS define. This patch allows to modify these size independently for memory of reserved regions in the next patches. Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
This commit is contained in:

committed by
Tom Rini

parent
8f167da9c5
commit
00fd8dad4d
@@ -21,6 +21,7 @@ struct lmb_property {
|
||||
|
||||
struct lmb_region {
|
||||
unsigned long cnt;
|
||||
unsigned long max;
|
||||
struct lmb_property region[MAX_LMB_REGIONS+1];
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user