projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4515992
)
include/common.h: remove DIV_ROUND definition
author
Masahiro Yamada
<yamada.m@jp.panasonic.com>
Thu, 6 Nov 2014 18:03:27 +0000
(
03:03
+0900)
committer
Tom Rini
<trini@ti.com>
Thu, 20 Nov 2014 16:28:25 +0000
(11:28 -0500)
All the references of DIV_ROUND have been replaced with
DIV_ROUND_CLOSEST. Remove DIV_ROUND.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
include/common.h
patch
|
blob
|
history
diff --git
a/include/common.h
b/include/common.h
index ecf7fcaf7b65f2cb98be8ae822474e21628e454e..c9fe38656edcd61981e406c1aaad8999fded1bd9 100644
(file)
--- a/
include/common.h
+++ b/
include/common.h
@@
-950,7
+950,6
@@
static inline phys_addr_t map_to_sysmem(const void *ptr)
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
#define ROUND(a,b) (((a) + (b) - 1) & ~((b) - 1))
-#define DIV_ROUND(n,d) (((n) + ((d)/2)) / (d))
#define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d))
#define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y))