projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a729782
)
staging: unisys: include: replaced COVERQ with DIV_ROUND_UP
author
Alexander Curtin
<
[email protected]
>
Fri, 17 Mar 2017 15:26:52 +0000
(11:26 -0400)
committer
Greg Kroah-Hartman
<
[email protected]
>
Tue, 21 Mar 2017 06:58:45 +0000
(07:58 +0100)
COVERQ is functionally equivalent to DIV_ROUND_UP and was only used
to define the COVER macro.
Signed-off-by: Alexander Curtin <
[email protected]
>
Signed-off-by: David Kershner <
[email protected]
>
Reviewed-by: Tim Sell <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/unisys/include/channel.h
patch
|
blob
|
history
diff --git
a/drivers/staging/unisys/include/channel.h
b/drivers/staging/unisys/include/channel.h
index 1c95302f7f1b88d51fa650838c30a910c6dd0f0d..802452908ff1527146c9fd9ba8d3075ab0594981 100644
(file)
--- a/
drivers/staging/unisys/include/channel.h
+++ b/
drivers/staging/unisys/include/channel.h
@@
-41,11
+41,8
@@
#ifndef lengthof
#define lengthof(TYPE, MEMBER) (sizeof(((TYPE *)0)->MEMBER))
#endif
-#ifndef COVERQ
-#define COVERQ(v, d) (((v) + (d) - 1) / (d))
-#endif
#ifndef COVER
-#define COVER(v, d) ((d) *
COVERQ
(v, d))
+#define COVER(v, d) ((d) *
DIV_ROUND_UP
(v, d))
#endif
#define ULTRA_CHANNEL_PROTOCOL_SIGNATURE SIGNATURE_32('E', 'C', 'N', 'L')