summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>2019-01-21 22:29:55 +0300
committerTom Rini <trini@konsulko.com>2019-01-26 16:13:57 +0300
commit65304aade8041c03859d0f7b210f2e2a4d46bec0 (patch)
tree3867662969ccc30a58009523f6261779fb423841 /lib
parenteba0c26f07efc0f6e163537c4cce75468be61027 (diff)
downloadu-boot-65304aade8041c03859d0f7b210f2e2a4d46bec0.tar.xz
lib: lmb: rename lmb_get_unreserved_size to lmb_get_free_size
As a follow-up, change the name of the newly introduced function 'lmb_get_unreserved_size' to 'lmb_get_free_size', which is more appropriate. Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> [trini: Fix test/lib/lmb.c] Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/lmb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lmb.c b/lib/lmb.c
index 3407705fa7..2efb48c1dc 100644
--- a/lib/lmb.c
+++ b/lib/lmb.c
@@ -353,7 +353,7 @@ phys_addr_t lmb_alloc_addr(struct lmb *lmb, phys_addr_t base, phys_size_t size)
}
/* Return number of bytes from a given address that are free */
-phys_size_t lmb_get_unreserved_size(struct lmb *lmb, phys_addr_t addr)
+phys_size_t lmb_get_free_size(struct lmb *lmb, phys_addr_t addr)
{
int i;
long j;